/* Sign-in and set-password pages — same look as the public website (site.html). */
:root {
  --bg: #070b1a; --bg2: #0d1430; --line: rgba(255,255,255,.1); --text: #eef1fb; --muted: #a3abc8;
  --violet: #8b5cf6; --cyan: #22d3ee; --grad: linear-gradient(120deg, var(--violet), var(--cyan));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; }
[hidden] { display: none !important; }

.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100svh; }

/* left: picture and promise */
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; }
.auth-art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translateX(-2%); } }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7,11,26,.6) 0%, rgba(7,11,26,.25) 30%, rgba(7,11,26,.75) 60%, rgba(7,11,26,.97) 100%),
              radial-gradient(circle at 15% 85%, rgba(139,92,246,.45), transparent 55%); }
.auth-art > a, .auth-art > div { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #061023; font-weight: 800; }
.art-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; max-width: 520px; margin-bottom: 14px; }
.art-copy p { color: #cdd3ea; max-width: 460px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: #dbe0f3; font-size: .95rem; }
.ticks li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #061023; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }

/* right: the form */
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; position: relative;
  background: radial-gradient(circle at 80% 10%, rgba(34,211,238,.12), transparent 45%), radial-gradient(circle at 20% 90%, rgba(139,92,246,.14), transparent 50%), var(--bg); }
.auth-main .back { position: absolute; top: 28px; right: 32px; color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 600; }
.auth-main .back:hover { color: var(--text); }
.login-card { width: min(420px, 100%); }
.login-card .logo { display: none; }
.login-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.login-card > p { color: var(--muted); margin-bottom: 26px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; font-size: .88rem; font-weight: 600; color: #cdd3ea; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: rgba(139,92,246,.8); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.field input[readonly] { opacity: .7; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted);
  cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.pw-eye:hover { color: var(--text); background: rgba(255,255,255,.08); }
.pw-eye svg { width: 18px; height: 18px; }

.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 4px 0 18px; font-size: .9rem; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle > span { flex: 0 0 40px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative; transition: background .2s; margin-top: 1px; }
.toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--grad); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139,92,246,.4); }
.toggle em { display: block; font-style: normal; color: var(--muted); font-size: .8rem; }

.btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 15px 22px; border: 0; border-radius: 999px;
  background: var(--grad); color: #061023; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(139,92,246,.8); transition: transform .2s, box-shadow .2s, opacity .2s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(34,211,238,.8); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.link-btn { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; text-decoration: none; text-align: center; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.err { color: #fca5a5; font-size: .9rem; min-height: 1.3em; margin-bottom: 8px; }
.ok-msg { color: #5eead4; font-size: .92rem; margin-bottom: 8px; }
.ok-msg:empty, .err:empty { margin: 0; min-height: 0; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 28px; }
.foot-links { position: absolute; bottom: 22px; display: flex; gap: 18px; font-size: .8rem; color: var(--muted); }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 230px; padding: 24px; }
  .art-copy p, .ticks { display: none; }
  .art-copy h2 { font-size: 1.6rem; }
  .auth-main { padding: 36px 20px 80px; justify-content: flex-start; }
  .auth-main .back { display: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-art img { animation: none; } }
