/* Sign up, log in, password reset, email verification and account pages.
   Loaded after style.css and uses its colour variables. */

:root {
  --ok: #059669; --ok-bg: #ecfdf5;
  --bad: #dc2626; --bad-bg: #fef2f2;
  --warn: #b45309; --warn-bg: #fffbeb;
  --ring: color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ok: #34d399; --ok-bg: rgba(52, 211, 153, 0.1);
    --bad: #f87171; --bad-bg: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, 0.1);
  }
}

/* ---- Split-screen layout ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr); }

.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 40px 56px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(50% 40% at 10% 95%, rgba(56, 189, 248, 0.35), transparent 70%),
    linear-gradient(150deg, #4338ca, #6d28d9 60%, #7c3aed);
}
.auth-side::after {
  /* faint clock rings */
  content: ""; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 140px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.auth-side .brand { color: #fff; }
.auth-side .logo { background: rgba(255, 255, 255, 0.18); }
.side-body { margin: auto 0; max-width: 460px; position: relative; z-index: 1; }
.side-body h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; }
.side-body > p { font-size: 17px; opacity: 0.88; margin: 0 0 28px; }
.perks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.perks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); flex: none; }

/* A miniature of the extension's reminder, for flavour */
.side-pill {
  display: flex; align-items: center; gap: 12px; width: min(340px, 100%); padding: 10px 12px; border-radius: 16px;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}
.side-pill .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #a855f7); }
.side-pill .ico svg { width: 18px; height: 18px; }
.side-pill b { display: block; font-size: 14px; }
.side-pill small { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.side-pill .live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.side-foot { position: relative; z-index: 1; font-size: 13.5px; opacity: 0.75; margin-top: 32px; }

.auth-main { display: flex; flex-direction: column; padding: 28px 24px; background: var(--bg); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.auth-top .brand { visibility: hidden; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-card h1 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 6px; }
.auth-card .lead-sm { color: var(--muted); margin: 0 0 26px; font-size: 15.5px; }
.trial-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--accent); background: var(--info);
}
.trial-tag svg { width: 15px; height: 15px; }

/* ---- Forms ---- */
.google-wrap { margin-bottom: 18px; }
#google-btn { min-height: 44px; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field .lbl { font-size: 14px; font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; }
.field .lbl a { font-weight: 600; font-size: 13.5px; }
.input {
  position: relative; display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.input > svg { width: 18px; height: 18px; margin-left: 14px; color: var(--muted); flex: none; }
.input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg);
  font: inherit; font-size: 15.5px; padding: 12px 14px 12px 10px;
}
.input input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.pw-toggle {
  border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px 12px; border-radius: 10px; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--fg); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .eye-off, .pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }
.field.invalid .input { border-color: var(--bad); }
.field.invalid .input:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }
.f-err { color: var(--bad); font-size: 13px; min-height: 0; }
.f-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pw-meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars i { height: 4px; border-radius: 2px; background: var(--line); transition: background 0.2s; }
.pw-meter[data-score="1"] .pw-bars i:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-score="2"] .pw-bars i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-score="3"] .pw-bars i:nth-child(-n+3) { background: #10b981; }
.pw-meter[data-score="4"] .pw-bars i { background: #059669; }
.pw-word { min-width: 46px; text-align: right; font-weight: 600; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

.btn-block {
  position: relative; width: 100%; justify-content: center; padding: 14px 22px; font-size: 16px; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 12px 24px color-mix(in srgb, #4f46e5 30%, transparent);
}
.btn-block:disabled { opacity: 0.7; cursor: default; }
.btn-block .spin { display: none; }
.btn.busy .spin {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn.busy .arrow { display: none; }
.btn.alt.busy .spin, .btn.line.busy .spin, .btn.danger.busy .spin { border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.15s; }
.btn:not(:disabled):hover .arrow { transform: translateX(3px); }
@keyframes spin { to { transform: rotate(360deg); } }

.switch-line { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.switch-line a { font-weight: 700; }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; margin: 18px 0 0; }

.notice { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; border: 1px solid transparent; }
.notice.ok { color: var(--ok); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice.bad { color: var(--bad); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice.info { color: var(--accent); background: var(--info); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }

.state-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.state-icon svg { width: 30px; height: 30px; }
.state-icon.ok { background: linear-gradient(135deg, #34d399, #059669); }
.state-icon.bad { background: linear-gradient(135deg, #fb7185, #e11d48); }
.state-icon.mail { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.state-icon.wait { background: var(--soft); color: var(--muted); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 22px 24px 26px; }
  .auth-side::after, .side-pill, .side-foot, .perks { display: none; }
  .side-body { margin: 18px 0 0; }
  .side-body h2 { font-size: 24px; margin: 0 0 4px; }
  .side-body > p { font-size: 15px; margin: 0; }
  .auth-card { padding: 20px 0 8px; }
  .auth-card h1 { font-size: 26px; }
}

/* ---- Pricing page ---- */
.price-hero { text-align: center; color: #fff; padding: 64px 0 120px; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%), linear-gradient(135deg, #4f46e5, #7c3aed); }
.price-hero h1 { margin: 12px 0 10px; font-size: 44px; letter-spacing: -0.03em; line-height: 1.1; }
.price-hero p { margin: 0 auto; max-width: 560px; opacity: 0.9; font-size: 18px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -76px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.tier.best { border: 2px solid var(--accent); box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 22%, transparent); }
.tier .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tier h3 { margin: 0; font-size: 18px; }
.tier .for { color: var(--muted); font-size: 14.5px; margin: 4px 0 18px; }
.tier .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tier .amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tier .equiv { min-height: 22px; color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.tier .equiv b { color: var(--ok); }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); flex: none; }
.tier .btn { margin-top: auto; justify-content: center; }
.tier .btn.alt { color: var(--accent); background: var(--info); }
.tier-note { text-align: center; color: var(--muted); font-size: 14px; margin: 22px 0 0; }

.compare { margin-top: 20px; }
.compare table { font-size: 15px; }
.compare td, .compare th { padding: 14px 12px; white-space: normal; }
.compare th { font-size: 13px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--ok); font-weight: 800; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-hero h1 { font-size: 34px; }
}
.field > label.check { justify-content: flex-start; font-weight: 400; font-size: 14px; }
