@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --principal: #771ae3;
  --secundario: #08caf7;
  --terciario: #f3420e;
  --principal-light: #f0e6fd;
  --secundario-light: #e0f9fe;
  --terciario-light: #fee8e3;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --text-light: #999;
  --bg: #f5f0ff;
  --white: #ffffff;
  --border: #e0d0f5;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(119,26,227,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
}

.header {
  background: linear-gradient(135deg, var(--principal) 0%, #4a0ea8 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(119,26,227,0.3);
}
.header img { height: 40px; }
.header-title { color: white; font-size: 18px; font-weight: 700; }
.header-subtitle { color: rgba(255,255,255,0.75); font-size: 12px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  border-top: 4px solid var(--principal);
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--principal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--principal-light);
}

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
  background: white;
  color: var(--text-dark);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--principal);
  box-shadow: 0 0 0 3px rgba(119,26,227,0.12);
}

input.error { border-color: var(--terciario); }

.hint { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.hint.suggested { color: var(--principal); font-weight: 500; }

.error-msg { color: var(--terciario); font-size: 11px; margin-top: 4px; display: none; font-weight: 500; }
.error-msg.show { display: block; }

.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--principal) 0%, #9b2ef5 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(119,26,227,0.4);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(119,26,227,0.5); }
.btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; transform: none; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-info { background: var(--principal-light); border-left: 4px solid var(--principal); color: var(--principal); }
.alert-success { background: #e3f9e5; border-left: 4px solid #4caf50; color: #2e7d32; }

.success-box {
  background: linear-gradient(135deg, var(--principal) 0%, #9b2ef5 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  display: none;
}
.success-box h2 { font-size: 22px; margin-bottom: 8px; }
.success-box p { opacity: 0.85; font-size: 14px; }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
