/* ============================================================
   SinaumeSync — Auth pages (Google-only sign in)
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }

.auth-nav {
  height: 60px; display: flex; align-items: center;
  padding: 0 clamp(16px,4vw,48px); border-bottom: 1px solid var(--border);
  background: rgba(13,16,20,.95); position: sticky; top: 0; z-index: 100;
}
.auth-nav .logo { display: flex; align-items: center; gap: 10px; }
.logo-wordmark { font-size: 1.05rem; font-weight: 800; }
.logo-wordmark span { color: var(--primary); }

.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 400px; }

.auth-card-header { margin-bottom: 28px; text-align: center; }
.auth-card-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; line-height: 1.02;
  text-transform: uppercase; letter-spacing: -.02em;
}
.auth-card-header p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

.auth-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.auth-perks li {
  display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text);
}
.auth-perks li::before { content: "\2713"; color: var(--primary); font-weight: 800; }

.google-slot { display: flex; justify-content: center; margin-bottom: 12px; min-height: 44px; }

.btn-google {
  width: 100%; height: 50px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-mono);
  font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; transition: all var(--t);
}
.btn-google:hover { border-color: var(--primary); color: var(--primary); }
.btn-google svg { flex-shrink: 0; }

.auth-fineprint {
  text-align: center; color: var(--subtle); font-size: .76rem; margin-top: 14px; line-height: 1.6;
}

.auth-footer { text-align: center; margin-top: 24px; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.auth-footer a { color: var(--primary); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }
.auth-terms { font-size: .76rem; color: var(--subtle); }
.auth-terms a { color: var(--muted); font-weight: 600; }

/* ---- Email/password forms ---------------------------------- */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.auth-field label { font-size: .8rem; font-weight: 700; color: var(--text); }
.auth-field input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md, 8px);
  font: 500 .92rem Manrope, sans-serif; transition: border-color .15s;
}
.auth-field input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 123, 44, .18);
}
.auth-field input[aria-invalid="true"] { border-color: #ef4444; }
.auth-hint { font-size: .72rem; color: var(--subtle); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-check { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.auth-link-sm { font-size: .82rem; color: var(--primary); font-weight: 700; }
.auth-link-sm:hover { text-decoration: underline; }

.btn-auth {
  width: 100%; padding: 12px 16px; border: none; border-radius: var(--r-md, 8px);
  background: var(--primary); color: #fff; font: 800 .95rem Manrope, sans-serif;
  cursor: pointer; transition: filter .15s, opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover { filter: brightness(1.06); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; }

/* Inline status messages */
.auth-msg { font-size: .84rem; line-height: 1.55; padding: 11px 13px; border-radius: var(--r-md, 8px); display: none; }
.auth-msg.show { display: block; }
.auth-msg.error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; }
.auth-msg.success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; }

/* Button spinner */
.auth-spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: auth-spin .6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Centered state for verify/reset result pages */
.auth-state { text-align: center; }
.auth-state .auth-spinner { width: 28px; height: 28px; border-width: 3px; border-top-color: var(--primary); border-color: rgba(233,123,44,.25); border-top-color: var(--primary); margin: 8px auto 18px; }
