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

* { box-sizing: border-box; }

:root {
  --ink: #14121f;
  --ink-soft: #4b4560;
  --muted: #7c7794;
  --border: #e8e5f2;
  --surface: #ffffff;
  --bg: #f6f5fb;

  --primary: #4f2fce;
  --primary-dark: #3c22a3;
  --primary-light: #7c5cff;
  --gold: #c8932a;

  --success-bg: #eafaf1;
  --success-text: #0a7a4c;
  --error-bg: #fdecee;
  --error-text: #c0293f;

  --shadow-lg: 0 24px 60px rgba(20, 18, 31, .14), 0 4px 14px rgba(20, 18, 31, .08);
  --radius: 16px;
}

body.auth {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 90% -10%, #efe9ff 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 110%, #fdf3e2 0%, transparent 55%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  background: var(--surface);
  padding: 36px 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 390px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.auth-card.wide { max-width: 490px; }

.auth-card h1 { font-size: 20px; margin: 6px 0 4px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.auth-card h1 .brand-by { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.auth-card p.sub { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 700; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .15);
}

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.checkbox-field label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-soft); cursor: pointer; margin-bottom: 0; }
.checkbox-field input[type="checkbox"] { width: auto; accent-color: var(--primary); }
.checkbox-field .hint { margin: 4px 0 12px 24px; }

.onboarding-step {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 8px;
}
.onboarding-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.onboarding-actions .btn { flex: 1; }

.pw-field { position: relative; }
.pw-field input { padding-right: 58px; }
.pw-toggle {
  position: absolute;
  right: 4px; top: 4px; bottom: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 0 10px;
}
.pw-toggle:hover { color: var(--primary-dark); }

button.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(79, 47, 206, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
button.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79, 47, 206, .34); }

.msg { padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 16px; font-weight: 600; border: 1px solid transparent; }
.msg.error { background: var(--error-bg); color: var(--error-text); border-color: #f6c6ce; }
.msg.success { background: var(--success-bg); color: var(--success-text); border-color: #bdeed2; }

.hint { font-size: 12px; color: var(--muted); margin-top: -10px; margin-bottom: 16px; }

.links { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.links a { color: var(--primary); font-weight: 700; text-decoration: none; }
.links a:hover { color: var(--primary-dark); text-decoration: underline; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.btn-google svg { flex-shrink: 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e5ef; }
