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

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --text: #1F2937;
  --muted: #6B7280;
  --bg: #FAFAFA;
  --border: #E5E7EB;
  --error: #DC2626;
  --success: #059669;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #EDE9FE 0%, #FEF3C7 60%, #D1FAE5 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, .15);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 28px;
}
.auth-logo span { font-size: 1.7rem; }

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 10 13 14 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 6px;
  font-family: inherit;
}
.btn-submit:hover:not(:disabled) { background: var(--primary-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: #FEE2E2; color: var(--error); border: 1px solid #FECACA; }
.alert.success { background: #D1FAE5; color: var(--success); border: 1px solid #A7F3D0; }
