/* ===== AUTH PAGES (split screen, mysterious) ===== */
.auth-body { min-height: 100vh; overflow-x: hidden; background: #050505; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* LEFT — visual / terminal */
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; background: linear-gradient(160deg, #0a0505 0%, #120303 55%, #060606 100%); border-right: 1px solid var(--border-red); }
.auth-visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(204,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(204,0,0,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.auth-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(204,0,0,.22), transparent 65%); top: -120px; left: -100px; filter: blur(20px); animation: authGlow 8s ease-in-out infinite; }
@keyframes authGlow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.15); } }

.auth-brand { position: relative; z-index: 2; }
.auth-brand-logo { font-family: var(--mono); font-size: 1.6rem; letter-spacing: 3px; color: #fff; }
.auth-brand-logo span { color: var(--red); text-shadow: 0 0 18px rgba(204,0,0,.6); }

.auth-terminal { position: relative; z-index: 2; background: rgba(0,0,0,.5); border: 1px solid var(--border); border-radius: 8px; padding: 18px; font-family: var(--mono); font-size: .8rem; line-height: 1.9; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.auth-terminal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot-r { background: #ff5f56; } .term-dot-y { background: #ffbd2e; } .term-dot-g { background: #27c93f; }
.auth-terminal-title { color: var(--text-dim); font-size: .72rem; margin-left: 8px; }
.term-line { color: var(--text-dim); white-space: nowrap; overflow: hidden; }
.term-line .ok { color: #44ff77; }
.term-line .red { color: var(--red-light); }
.term-line .prompt { color: var(--red); }
#termCursor { color: var(--red-light); animation: blink 1s step-end infinite; }

.auth-tagline { position: relative; z-index: 2; }
.auth-tagline h2 { color: #fff; font-size: 1.8rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.5px; }
.auth-tagline h2 b { color: var(--red-light); }
.auth-tagline p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; max-width: 400px; }
.auth-features { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.auth-feat { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: .82rem; font-family: var(--mono); }
.auth-feat span { color: var(--red); }

/* RIGHT — form */
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 44px; position: relative; }
.auth-form-box { width: 100%; max-width: 400px; animation: fadeUp .7s ease both; }
.auth-form-head { margin-bottom: 30px; }
.auth-form-head .step-tag { font-family: var(--mono); font-size: .72rem; color: var(--red); letter-spacing: 3px; margin-bottom: 10px; }
.auth-form-head h1 { color: #fff; font-size: 1.9rem; font-weight: 700; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-form-head p { color: var(--text-dim); font-size: .9rem; }

.auth-field { margin-bottom: 16px; position: relative; }
.auth-field label { display: block; font-family: var(--mono); font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 7px; }
.auth-input { width: 100%; background: var(--bg2); border: 1px solid var(--border); color: #fff; padding: 13px 15px; border-radius: 8px; font-size: .98rem; font-family: var(--sans); outline: none; transition: all .25s; }
.auth-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.12); background: var(--bg3); }
.auth-input::placeholder { color: #3a3a3a; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-submit { width: 100%; background: var(--red); color: #fff; border: none; padding: 15px; border-radius: 8px; font-weight: 700; font-size: 1rem; letter-spacing: .5px; cursor: pointer; transition: all .25s; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.auth-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transition: left .6s; }
.auth-submit:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(204,0,0,.4); }
.auth-submit:hover::before { left: 100%; }
.auth-submit-arrow { transition: transform .25s; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(4px); }

.auth-alt { text-align: center; margin-top: 22px; color: var(--text-dim); font-size: .9rem; }
.auth-alt a { color: var(--red-light); font-weight: 600; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #444; font-size: .76rem; font-family: var(--mono); }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #44ff77; font-size: .75rem; font-family: var(--mono); }
.auth-secure-note span { animation: pulse 2s infinite; }

.auth-back { position: absolute; top: 28px; left: 28px; color: var(--text-dim); font-family: var(--mono); font-size: .82rem; z-index: 3; transition: color .2s; }
.auth-back:hover { color: var(--red-light); }

.auth-disclaimer { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; margin-bottom: 18px; font-size: .78rem; color: var(--text-dim); line-height: 1.55; }
.auth-disclaimer a { color: var(--red-light); }
.auth-required { color: var(--red); }

@media (max-width: 880px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 80px 22px 40px; min-height: 100vh; }
  .auth-back { top: 22px; left: 22px; }
}
