/* ============================================================
   CoinScanner — auth v2
   Card-style auth screens. Used by login, signup, forgot,
   reset and verify. Loaded in addition to auth.css so the
   existing shared JS (eye toggle, OTP boxes) keeps working.
   ============================================================ */

:root{
  --a2-blue:#1877F2;
  --a2-blue-dk:#0f5fd0;
  --a2-blue-soft:#eaf2fe;
  --a2-ink:#0f172a;
  --a2-body:#475569;
  --a2-muted:#94a3b8;
  --a2-line:#e2e8f0;
  --a2-ok:#16a34a;
  --a2-err:#dc2626;
}

body.auth-page{
  margin:0;
  min-height:100vh;
  background:#f4f7fb;
  background-image:radial-gradient(900px 420px at 50% -200px, rgba(24,119,242,.13), transparent 70%);
  color:var(--a2-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---------- shell ---------- */
.a2-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:34px 18px 44px;
}

.a2-brand{
  display:inline-flex;align-items:center;gap:10px;
  text-decoration:none;margin-bottom:22px;
}
.a2-brand img{height:34px;width:auto;display:block}
.a2-brand span{font-size:17px;font-weight:800;letter-spacing:.2px;color:var(--a2-ink)}

/* ---------- the card ---------- */
.a2-card{
  width:100%;
  max-width:400px;
  background:#fff;
  border:1px solid var(--a2-line);
  border-radius:16px;
  padding:30px 30px 24px;
  box-shadow:0 1px 2px rgba(15,23,42,.04), 0 16px 44px rgba(15,23,42,.09);
}

.a2-title{margin:0 0 5px;font-size:23px;font-weight:800;letter-spacing:-.4px;text-align:center}
.a2-sub{margin:0 0 22px;font-size:13.5px;color:var(--a2-body);line-height:1.55;text-align:center}

/* ---------- alerts ---------- */
.a2-alert{
  display:flex;gap:9px;align-items:flex-start;
  font-size:13.5px;line-height:1.5;
  padding:11px 13px;border-radius:10px;margin-bottom:16px;
}
.a2-alert i{margin-top:2px;flex:none}
.a2-alert-err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.a2-alert-ok{background:#f0fdf4;color:#14532d;border:1px solid #bbf7d0}
.a2-alert a{color:inherit;font-weight:700}

/* ---------- google button ---------- */
.a2-google{
  width:100%;
  display:flex;align-items:center;justify-content:center;gap:11px;
  padding:12px 16px;
  font-family:inherit;font-size:14.5px;font-weight:650;
  color:#1f2937;background:#fff;
  border:1.5px solid #d5dbe4;border-radius:11px;
  cursor:pointer;text-decoration:none;
  transition:background .15s,border-color .15s,box-shadow .15s,transform .06s;
}
.a2-google:hover{
  background:#f8fafc;border-color:#b9c4d2;
  box-shadow:0 3px 12px rgba(15,23,42,.08);
  transform:translateY(-1px);
}
.a2-google:active{transform:translateY(0)}
.a2-google svg{width:18px;height:18px;flex:none}

/* ---------- divider ---------- */
.a2-or{
  display:flex;align-items:center;gap:12px;
  margin:19px 0;color:var(--a2-muted);
  font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;
}
.a2-or::before,.a2-or::after{content:"";flex:1;height:1px;background:var(--a2-line)}

/* ---------- fields ---------- */
.a2-field{margin-bottom:15px}
.a2-label{display:block;font-size:12.5px;font-weight:650;color:#334155;margin-bottom:6px}
.a2-row{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px}
.a2-row .a2-label{margin-bottom:0}
.a2-link-sm{font-size:12px;font-weight:650;color:var(--a2-blue);text-decoration:none}
.a2-link-sm:hover{text-decoration:underline}

.a2-input-wrap{position:relative}
.a2-input{
  width:100%;height:46px;
  padding:0 14px;
  font-size:15px;font-family:inherit;color:var(--a2-ink);
  background:#fff;border:1.5px solid var(--a2-line);border-radius:11px;
  outline:none;transition:border-color .15s,box-shadow .15s;
}
.a2-input::placeholder{color:#b2bcc9}
.a2-input:focus{border-color:var(--a2-blue);box-shadow:0 0 0 3.5px rgba(24,119,242,.14)}
.a2-input.has-eye{padding-right:46px}

.a2-eye{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:36px;height:36px;display:grid;place-items:center;
  background:none;border:0;border-radius:9px;
  color:var(--a2-muted);cursor:pointer;font-size:14px;
}
.a2-eye:hover{color:#64748b;background:#f1f5f9}

.a2-hint{margin:6px 0 0;font-size:11.5px;color:var(--a2-muted);line-height:1.45}

/* password strength */
.a2-meter{display:flex;gap:4px;margin-top:8px}
.a2-meter i{height:3px;flex:1;border-radius:2px;background:#e2e8f0;transition:background .2s}
.a2-meter i.on{background:var(--a2-ok)}

/* ---------- checkbox ---------- */
.a2-check{
  display:flex;align-items:center;gap:9px;cursor:pointer;
  font-size:13.5px;color:var(--a2-body);margin:2px 0 18px;
}
.a2-check input{width:16px;height:16px;accent-color:var(--a2-blue);cursor:pointer;flex:none}

/* ---------- submit ---------- */
.a2-btn{
  width:100%;height:47px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:inherit;font-size:15px;font-weight:700;color:#fff;
  background:var(--a2-blue);border:0;border-radius:11px;cursor:pointer;
  box-shadow:0 3px 12px rgba(24,119,242,.28);
  transition:background .15s,box-shadow .15s,transform .06s;
}
.a2-btn:hover{background:var(--a2-blue-dk);box-shadow:0 5px 18px rgba(24,119,242,.34);transform:translateY(-1px)}
.a2-btn:active{transform:translateY(0)}
.a2-btn:disabled{opacity:.6;cursor:not-allowed;box-shadow:none;transform:none}

/* ---------- footer bits ---------- */
.a2-switch{margin:19px 0 0;text-align:center;font-size:14px;color:var(--a2-body)}
.a2-switch a{color:var(--a2-blue);font-weight:700;text-decoration:none}
.a2-switch a:hover{text-decoration:underline}

.a2-legal{margin:15px 0 0;text-align:center;font-size:11.5px;line-height:1.6;color:var(--a2-muted)}
.a2-legal a{color:#64748b;text-decoration:underline}

.a2-trust{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin-top:18px;padding-top:15px;border-top:1px solid #f1f5f9;
  font-size:12px;color:var(--a2-muted);
}
.a2-trust i{color:var(--a2-ok)}

.a2-back{margin-top:20px;font-size:13px;color:var(--a2-muted);text-decoration:none}
.a2-back:hover{color:var(--a2-body)}

/* ---------- icon header (verify / reset screens) ---------- */
.a2-icon{
  width:56px;height:56px;border-radius:15px;
  background:var(--a2-blue-soft);color:var(--a2-blue);
  display:grid;place-items:center;font-size:24px;
  margin:0 auto 15px;
}

/* ---------- OTP boxes ----------
   Class names kept as .otp-boxes-wrap / .otp-box because the
   existing auth.js drives them. Only the look changes here. */
.a2-card .otp-boxes-wrap{display:flex;gap:9px;justify-content:center;margin:20px 0}
.a2-card .otp-box{
  width:44px;height:52px;
  text-align:center;font-size:21px;font-weight:800;
  color:var(--a2-ink);background:#fff;
  border:1.5px solid var(--a2-line);border-radius:11px;
  outline:none;transition:border-color .15s,box-shadow .15s;
}
.a2-card .otp-box:focus{border-color:var(--a2-blue);box-shadow:0 0 0 3.5px rgba(24,119,242,.14)}
.a2-card .otp-box.filled{border-color:var(--a2-blue);background:var(--a2-blue-soft);color:var(--a2-blue)}

/* honeypot — hidden from people, visible to naive bots */
.a2-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
  tab-index:-1;
}

/* ---------- responsive ---------- */
@media (max-width:520px){
  .a2-shell{padding:22px 14px 32px;justify-content:flex-start}
  .a2-card{padding:24px 20px 20px;border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.07)}
  .a2-title{font-size:21px}
  .a2-card .otp-box{width:40px;height:48px;font-size:19px}
}
