/* Hack365 sign-in pages (learner and admin). Plain CSS, no external scripts. */
:root { --bg:#05080a; --panel:rgba(14,22,26,.82); --line:rgba(142,194,43,.18); --line2:rgba(142,194,43,.32); --text:#e8f2e4; --muted:#8fa39a; --dim:#5d6f68;
  --lime:#8ec22b; --hi:#b4f04a; --green:#428c23; --violet:#8b5cf6; --red:#f43f5e; --grad:linear-gradient(135deg,#b4f04a 0%,#8ec22b 45%,#428c23 100%);
  --mono:"JetBrains Mono",ui-monospace,monospace; --font:"Space Grotesk","Inter",system-ui,sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
body.auth--admin { --lime:#a78bfa; --hi:#c4b5fd; --line:rgba(139,92,246,.2); --line2:rgba(139,92,246,.38); --grad:linear-gradient(135deg,#c4b5fd 0%,#8b5cf6 50%,#5b21b6 100%); }
a { color: var(--lime); } a:hover { color: var(--hi); }
.auth-art { position: relative; overflow: hidden; padding: 48px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 500px at 90% 0, rgba(142,194,43,.22), transparent 60%), radial-gradient(600px 500px at 0 100%, rgba(139,92,246,.22), transparent 60%), #070b0d; border-right: 1px solid var(--line); }
body.auth--admin .auth-art { background: radial-gradient(700px 500px at 90% 0, rgba(139,92,246,.28), transparent 60%), radial-gradient(600px 500px at 0 100%, rgba(34,211,238,.14), transparent 60%), #07080d; }
.auth-art::before { content: ""; position: absolute; inset: -50% -10% 0; background-image: linear-gradient(rgba(142,194,43,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(142,194,43,.12) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(600px) rotateX(58deg); transform-origin: center bottom; mask-image: linear-gradient(transparent 30%, #000 85%); animation: auth-grid 18s linear infinite; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); pointer-events: none; }
@keyframes auth-grid { to { background-position: 0 46px, 0 0; } }
.auth-art > * { position: relative; z-index: 1; }
.auth-logo img { height: 42px; filter: drop-shadow(0 0 14px rgba(142,194,43,.35)); }
.auth-pitch h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; max-width: 14ch; }
.auth-pitch h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch p { color: var(--muted); max-width: 46ch; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.auth-term { margin-top: 28px; max-width: 520px; font: .88rem/1.7 var(--mono); background: rgba(5,8,10,.75); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: #d6f5b0; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.auth-term .p { color: var(--lime); } .auth-term .d { color: var(--dim); } .auth-term .ok { color: var(--hi); }
.auth-term .line { opacity: 0; animation: auth-line .01s forwards; }
.auth-term .line:nth-child(1) { animation-delay: .3s; } .auth-term .line:nth-child(2) { animation-delay: 1.1s; } .auth-term .line:nth-child(3) { animation-delay: 1.8s; } .auth-term .line:nth-child(4) { animation-delay: 2.6s; } .auth-term .line:nth-child(5) { animation-delay: 3.3s; }
@keyframes auth-line { to { opacity: 1; } }
.auth-term .cursor { display: inline-block; width: .6em; height: 1.05em; vertical-align: -2px; background: var(--lime); animation: auth-blink 1s steps(1) infinite; }
@keyframes auth-blink { 50% { opacity: 0; } }
.auth-stats { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.auth-stats b { display: block; color: var(--text); font-size: 1.3rem; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(500px 300px at 50% 0, rgba(142,194,43,.08), transparent 70%), var(--bg); }
.auth-card { width: min(420px, 100%); }
.auth-eyebrow { font: 500 .74rem var(--mono); color: var(--lime); letter-spacing: .14em; text-transform: uppercase; }
.auth-card h2 { font-size: 1.9rem; letter-spacing: -.02em; margin: 6px 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .84rem; color: var(--muted); display: flex; justify-content: space-between; }
.input { position: relative; }
.input input { width: 100%; padding: 13px 14px 13px 42px; border-radius: 12px; border: 1px solid #1f2e34; background: #080d10; color: var(--text); font: 1rem var(--font); transition: border-color .2s, box-shadow .2s; }
.input input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 1px var(--line2), 0 0 22px rgba(142,194,43,.15); }
.input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.input .reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font: 600 .74rem var(--mono); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.input .reveal:hover { color: var(--text); background: rgba(255,255,255,.05); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; font-size: .88rem; }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--lime); width: 16px; height: 16px; }
.btn { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--grad); color: #071003; font: 700 1rem var(--font); cursor: pointer; box-shadow: 0 10px 30px -12px rgba(142,194,43,.8); transition: transform .15s, box-shadow .2s; }
body.auth--admin .btn { color: #fff; box-shadow: 0 10px 30px -12px rgba(139,92,246,.8); }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: none; } .btn[disabled] { opacity: .7; cursor: progress; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: .9rem; border: 1px solid rgba(244,63,94,.4); background: rgba(244,63,94,.08); }
.alert ul { margin: 0; padding-left: 18px; }
.alert--ok { border-color: var(--line2); background: rgba(142,194,43,.08); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font: .74rem var(--mono); margin: 24px 0; text-transform: uppercase; letter-spacing: .12em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt { text-align: center; color: var(--muted); font-size: .92rem; }
.alt a { font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 4px 8px; text-align: center; justify-content: center; margin-top: 26px; color: var(--dim); font: .72rem var(--mono); }
@media (max-width: 900px) { body.auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-main { min-height: 100vh; } }
@media (prefers-reduced-motion: reduce) { .auth-art::before, .auth-term .cursor { animation: none; } .auth-term .line { opacity: 1; animation: none; } }

/* Sign-up, recovery and Google (H365-N02) */
.field label span { color: var(--dim); font-size: .76rem; text-align: right; }
.input select { width: 100%; padding: 13px 14px 13px 42px; border-radius: 12px; border: 1px solid #1f2e34; background: #080d10; color: var(--text); font: 1rem var(--font); appearance: none; }
.input select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 1px var(--line2), 0 0 22px rgba(142,194,43,.15); }
.check { align-items: flex-start; }
.check span { line-height: 1.4; }
.check a, .legal a { color: var(--lime); }
.btn--google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f2328; border: 1px solid #dadce0; text-decoration: none; box-shadow: none; }
.btn--google:hover { background: #f4f6f8; color: #1f2328; }
.btn--google svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid #2a3b42; box-shadow: none; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.inline-action { margin-bottom: 16px; }
.steps { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.legal { margin-top: 10px; font-size: .72rem; color: var(--dim); text-align: center; }
.grecaptcha-badge { visibility: hidden; }

/* Error pages: one centred card */
body.auth--solo { grid-template-columns: 1fr; }
body.auth--solo .auth-main { min-height: 100vh; }
body.auth--solo .auth-logo { display: inline-block; margin-bottom: 28px; }
a.btn { display: block; text-align: center; text-decoration: none; }
