/* Sign-in / guest screens */
.auth-body { background: #f5f7f9; }
.auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- brand panel ---------- */
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; color: #e8f4f2;
  background: linear-gradient(145deg, #06141a 0%, #0a2a2e 48%, #0b4a46 100%); }
.auth-grid { position: absolute; inset: 0; opacity: .09; background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.auth-glow { position: absolute; width: 620px; height: 620px; right: -220px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.38), transparent 65%); filter: blur(10px); }
.auth-brand > :not(.auth-grid):not(.auth-glow) { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.auth-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #5eead4;
  background: rgba(94,234,212,.12); box-shadow: inset 0 0 0 1px rgba(94,234,212,.35); }
.auth-copy { max-width: 560px; }
.auth-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: #5eead4; margin: 0 0 14px; font-weight: 600; }
.auth-copy h1 { font-size: 2.15rem; line-height: 1.18; letter-spacing: -.02em; color: #fff; margin: 0 0 16px; font-weight: 650; }
.auth-lead { color: #a9c7c4; font-size: .98rem; line-height: 1.6; margin: 0 0 30px; }

.flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 30px; }
.flow-node { flex: 1; min-width: 0; padding: 12px 12px 12px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(4px); display: flex; flex-direction: column; gap: 2px; }
.flow-node i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: rgba(94,234,212,.18); color: #5eead4; margin-bottom: 6px; }
.flow-node b { font-size: .9rem; color: #fff; font-weight: 650; }
.flow-node small { font-size: .72rem; color: #8fb3b0; }
.flow-node.hot { background: rgba(20,184,166,.18); box-shadow: inset 0 0 0 1px rgba(94,234,212,.5); }
.flow-link { flex: 0 0 22px; align-self: center; height: 2px; position: relative; background: repeating-linear-gradient(90deg, #5eead4 0 4px, transparent 4px 8px); opacity: .7; animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; color: #cfe6e3; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points svg { color: #5eead4; flex: none; }
.auth-foot { margin: 0; font-size: .76rem; color: #6d908d; }

/* ---------- form panel ---------- */
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; background:
  radial-gradient(700px 360px at 90% -10%, #e3f3f1 0, transparent 70%), #f5f7f9; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e3e8ed; border-radius: 16px; padding: 38px 36px 30px; box-shadow: 0 1px 2px rgba(16,34,43,.04), 0 18px 48px -12px rgba(16,34,43,.14); }
.auth-logo-sm { display: none; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 22px; }
.auth-logo-sm .auth-mark { width: 32px; height: 32px; background: #e3f3f1; color: #0b6b63; box-shadow: none; }
.auth-title { font-size: 1.55rem; letter-spacing: -.015em; margin: 0 0 6px; font-weight: 700; }
.auth-sub { color: var(--ink-3); margin: 0 0 24px; font-size: .94rem; }

.ifield { margin-bottom: 18px; }
.ifield label { font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ibox { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 46px; border: 1px solid #cfd8e0; border-radius: 10px; background: #fff; color: #7b8896; transition: border-color .15s, box-shadow .15s; }
.ibox:focus-within { border-color: #0b6b63; box-shadow: 0 0 0 4px rgba(11,107,99,.14); color: #0b6b63; }
.ibox input { border: 0; outline: 0; box-shadow: none; padding: 0; height: 100%; flex: 1; min-width: 0; background: transparent; font-size: .97rem; color: var(--ink); }
.ibox input:focus-visible { outline: 0; }
.ibox svg { flex: none; }
.ibox-btn { border: 0; background: transparent; color: #0b6b63; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 6px 4px; border-radius: 6px; }
.ibox-btn:hover { text-decoration: underline; }
.caps { margin-top: 6px; font-size: .78rem; color: #9a6200; }

.auth-btn { width: 100%; height: 48px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: .98rem; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #0f8277, #0b6b63); box-shadow: 0 6px 16px -6px rgba(11,107,99,.7), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s, box-shadow .12s, filter .12s; }
.auth-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 22px -8px rgba(11,107,99,.75), inset 0 1px 0 rgba(255,255,255,.18); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.auth-btn.busy, .auth-btn:disabled { opacity: .75; cursor: progress; }
.auth-note { display: flex; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: #f3f6f8; color: var(--ink-3); font-size: .8rem; line-height: 1.45; }
.auth-note svg { flex: none; margin-top: 1px; color: #7b8896; }
.auth-legal { display: flex; align-items: center; gap: 7px; margin: 22px 0 0; font-size: .78rem; color: #8896a3; text-align: center; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-logo-sm { display: flex; }
  .auth-form { min-height: 100vh; }
}
@media (max-width: 480px) { .auth-card { padding: 28px 22px 24px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .flow-link { animation: none; } }
