/* Login page */
.login-page { min-height: 100svh; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100svh / var(--z)); }
.auth-visual { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 100%, rgba(216,180,106,.18), transparent 70%), linear-gradient(180deg, #070a14, #0c1020 60%, #120f12); border-right: 1px solid var(--border); }
.auth-visual > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.porthole { position: relative; width: min(24rem, 60%); aspect-ratio: 3 / 4; border-radius: 46% / 36%; overflow: hidden; background: #0b0f1a; box-shadow: 0 0 0 14px #141925, 0 0 0 15px rgba(255,255,255,.08), 0 0 0 30px #0d111b, 0 60px 120px -30px rgba(0,0,0,.9), 0 0 120px rgba(216,180,106,.15); }
.porthole canvas { width: 100%; height: 100%; }
.porthole .glass { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.12), transparent 35%, transparent 70%, rgba(255,255,255,.05)); pointer-events: none; }
.visual-copy { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 6vh, 4rem); text-align: center; padding: 0 2rem; }
.visual-copy .big { margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.05; }
.visual-copy .small { margin: .6rem auto 0; color: var(--fg-2); max-width: 26rem; font-size: .95rem; }

.auth-side { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 2rem var(--gutter); gap: 1.5rem; }
.auth-logo { justify-self: center; }
.auth-card { align-self: center; width: min(26rem, 100%); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); margin-bottom: 1.8rem; }
.tabs button { position: relative; z-index: 1; height: 2.4rem; border: 0; background: none; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--fg); }
.tab-pill { position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem); border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform .5s var(--ease); }
.signup .tab-pill { transform: translateX(100%); }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head h1 { font-size: 2.4rem; line-height: 1.05; }
.auth-head p { margin: .5rem 0 0; color: var(--fg-2); font-size: .95rem; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; color: var(--fg-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.link { font-size: .82rem; color: var(--gold-hi); }
.field input { height: 2.9rem; width: 100%; padding: 0 .95rem; border-radius: .75rem; border: 1px solid var(--border-hi); background: rgba(6,8,13,.6); color: var(--fg); font: inherit; font-size: .95rem; transition: border-color .3s, box-shadow .3s; }
.field input::placeholder { color: #5d5b57; }
.field input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,180,106,.2); }
.pw { position: relative; }
.pw input { padding-right: 2.9rem; }
.eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: .5rem; background: none; color: var(--muted); display: grid; place-items: center; }
.eye svg { width: 1.1rem; height: 1.1rem; }
.signup-only { display: none; }
.signup .signup-only { display: grid; }
.signup .login-only { display: none; }
.submit { width: 100%; margin-top: .4rem; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; height: 1px; background: var(--border); }
.social { display: grid; gap: .6rem; }
.social .btn { width: 100%; }
.social svg { width: 1.05rem; height: 1.05rem; }
.social .btn:hover svg { transform: none; }
.terms { margin: 1.2rem 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; transition: color .3s; }
.back:hover { color: var(--fg); }
.back svg { width: 1rem; height: 1rem; }

@media (max-width: 60rem) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 50svh; border-right: 0; border-bottom: 1px solid var(--border); }
  .porthole { width: min(12rem, 42%); margin-top: -2.5rem; }
  .visual-copy { bottom: 1.5rem; }
  .visual-copy .small { display: none; }
  .auth-side { padding-top: 1.5rem; }
  .auth-logo { position: absolute; top: calc(-50svh + 1.2rem); }
  .auth-card { position: relative; z-index: 2; }
}
@media (max-width: 40rem) {
  .auth-card { padding: 1.5rem; }
  .auth-head h1 { font-size: 2rem; }
}
