/* public/css/auth.css */

:root{
  --bg: #0b1020;
  --bg2:#1A1F36;
  --card:#0f1733;
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(0,191,255,.25);
  --text:#ffffff;
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --blue:#00BFFF;
  --shadow: 0 30px 80px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(0,191,255,.18), transparent 60%),
    radial-gradient(900px 700px at 85% 30%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 44px 16px 64px;
  width: 100%;
}

/* When the universal footer injects a sticky layout, avoid double-full-height issues */
body.saont-footer-sticky .page{
  min-height: 0;
  padding-bottom: 32px;
}

.shell{
  width: min(980px, 100%);
  display:flex;
  flex-direction:column;
  gap: 18px;
  align-items:center;
}

/* auth.html uses authBrand/authLogo (keep compatibility) */
.authBrand{
  width: min(560px, 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 6px 2px;
  opacity:.98;
  user-select:none;
}

.authLogo{
  width: 96px;
  height: 96px;
  display:block;
  filter: drop-shadow(0 18px 55px rgba(0,191,255,.18));
}

.brand{
  width: min(560px, 100%);
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 6px 2px;
  opacity:.98;
}

.logo{
  width:100px;height:100px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,191,255,.22), rgba(255,255,255,.08));
  border: 1px solid var(--stroke2);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 55px rgba(0,191,255,.18);
}

.mark{
  font-weight: 800;
  letter-spacing: .02em;
}

.brandCopy{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brandName{
  font-weight: 800;
  letter-spacing: .01em;
}

.brandTag{
  font-size: 13px;
  color: var(--muted2);
}

.card{
  width: min(560px, 100%);
  background: rgba(15, 23, 51, .72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
  overflow:hidden;
  max-height: calc(100vh - 280px);
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(700px 300px at 30% 0%, rgba(0,191,255,.18), transparent 55%);
  pointer-events:none;
}

.cardHeader{
  padding: 18px 20px 8px;
  position:relative;
}

.title{
  margin:0;
  font-size: 22px;
  letter-spacing: .01em;
}

.subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ownerEmail{
  padding: 0 20px 8px;
  position:relative;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(0,191,255,.28);
  background: rgba(0,191,255,.08);
  border-radius: 999px;
  padding: 8px 12px;
}

.pillLabel{
  font-size: 12px;
  color: var(--muted2);
}

.pillValue{
  font-size: 12px;
  font-weight: 700;
}

.hint{
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 12.5px;
  line-height: 1.45;
}

.clerkRoot{
  padding: 6px 10px 0;
  position:relative;
  overflow: auto;
}

/* Keeps Clerk inside your card without fighting their internals too much */
.clerkRoot > div{
  margin: 0 auto;
}

.error{
  margin: 10px 20px 0;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.10);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.footer{
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap: 10px;
  position:relative;
}

.fine{
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}

.links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.link{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.link:hover{
  border-bottom-color: rgba(0,191,255,.65);
  color:#fff;
}

.sep{
  color: rgba(255,255,255,.35);
}

.hidden{
  display:none !important;
}

/* Small-device tightening */
@media (max-width: 520px){
  .cardHeader{ padding: 16px 16px 6px; }
  .ownerEmail{ padding: 0 16px 6px; }
  .footer{ padding: 10px 16px 14px; }
  .clerkRoot{ padding: 4px 8px 0; }
}


/* Hide outer heading once Clerk UI is mounted to avoid double-framing */
.saont-clerk-mounted .cardHeader{ display:none; }
.saont-clerk-mounted .card{ padding-top: 18px; }


/* Saont auth notice (activation gating) */
.saontAuthNotice{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(96,165,250,.30);
  background: rgba(96,165,250,.10);
  color: rgba(255,255,255,.92);
  font: 600 13px/1.35 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing: .1px;
}
