/* Auth pages — matches homepage palette */
:root {
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --text: #1A1D26;
  --text-secondary: #5B6178;
  --text-muted: #6E7490;
  --accent: #3B5BDB;
  --accent-dark: #2E4BB0;
  --accent-light: #EBF0FF;
  --border: #E2E5F0;
  --danger: #DC3545;
  --success: #2F9E44;
}

body { background: var(--bg); color: var(--text); }

.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(59,91,219,0.06);
}

.auth-card.wide { max-width: 720px; }

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  color: var(--text);
}

.auth-head p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.auth-form .field { margin-bottom: 16px; }

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

.auth-form .row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 4px 0 18px;
}

.auth-form .row-flex a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-form .row-flex a:hover { text-decoration: underline; }

.auth-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background .15s, transform .05s;
  font-family: inherit;
}

.btn-auth:hover:not(:disabled) { background: var(--accent-dark); }
.btn-auth:active:not(:disabled) { transform: translateY(1px); }
.btn-auth:disabled { opacity: .55; cursor: not-allowed; }

.btn-auth.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-auth.btn-ghost:hover { background: var(--accent-light); }

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 22px;
}

.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.alert-error {
  background: #FDECEE;
  color: #B0212E;
  border: 1px solid #F5C2C7;
}
.alert-success {
  background: #E8F6EE;
  color: #1F7A34;
  border: 1px solid #BFE3CB;
}

/* Verify-email page methods */
.verify-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.verify-method {
  background: #F8F9FC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.verify-method h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
.verify-method p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.otp-input {
  letter-spacing: 8px;
  font-size: 22px !important;
  font-weight: 700;
  text-align: center;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace !important;
}

.muted-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}
.muted-link:hover { color: var(--accent); }

.cooldown {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { padding: 0 12px; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  box-sizing: border-box;
}
.btn-google:hover {
  background: #FAFBFF;
  border-color: var(--accent);
}
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
}
.pw-toggle:hover { color: var(--accent); background: var(--accent-light); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .icon-hide { display: none; }
.pw-toggle.is-visible .icon-show { display: none; }
.pw-toggle.is-visible .icon-hide { display: block; }
