/* PrimeChat — страницы входа/2FA/установки пароля */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root { --bg-1: #0B0E08; --bg-2: #141B10; --bg-3: #1F2A18; --accent: #E9B44C; --accent-strong: #4A5E3A; --accent-deep: #3A4A2B; --text: #141B10; --text-muted: #6c757d; --text-subtle: #9aa3ad; --border: #e1e5ea; --border-strong: #c8cfd6; --surface: #ffffff; --surface-soft: #f4f6f1; --danger: #dc3545; --radius: 16px; }
body { font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg-1); -webkit-font-smoothing: antialiased; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { position: relative; background: radial-gradient(at 20% 20%, rgba(233,180,76,.25), transparent 55%), radial-gradient(at 80% 80%, rgba(74,94,58,.35), transparent 50%), linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%); color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: -1; pointer-events: none; }
.auth-brand::before { width: 420px; height: 420px; background: #E9B44C; top: -120px; left: -120px; }
.auth-brand::after { width: 360px; height: 360px; background: #4A5E3A; bottom: -140px; right: -100px; }
.auth-logo { display: flex; align-items: center; gap: .75rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.auth-logo .accent { color: var(--accent); }
.auth-mark { width: 38px; height: 38px; display: grid; place-items: center; background: linear-gradient(135deg, #E9B44C, #4A5E3A); border-radius: 10px; box-shadow: 0 6px 18px rgba(233,180,76,.45); }
.auth-mark svg { width: 20px; height: 20px; color: #fff; }
.auth-content h2 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 700; letter-spacing: -.03em; }
.auth-content h2 .accent { background: linear-gradient(120deg, #F0D398 0%, #E9B44C 60%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-content p { font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,.72); max-width: 460px; margin: 0 0 2rem; }
.auth-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; max-width: 460px; }
.auth-features li { display: flex; align-items: center; gap: .85rem; font-size: .93rem; color: rgba(255,255,255,.85); }
.auth-features svg { flex: 0 0 auto; width: 26px; height: 26px; padding: 5px; color: #F0D398; background: rgba(233,180,76,.15); border: 1px solid rgba(233,180,76,.35); border-radius: 8px; }
.auth-footer { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }
.auth-form { background: var(--surface-soft); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius); padding: 2.4rem 2.2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); border: 1px solid var(--border); animation: fadeInUp .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #E9B44C, #4A5E3A); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 8px 22px rgba(233,180,76,.35); }
.auth-icon.danger { background: linear-gradient(135deg, #f87171, #b91c1c); box-shadow: 0 8px 22px rgba(220,53,69,.3); }
.auth-icon svg { width: 26px; height: 26px; }
.auth-card h1 { font-size: 1.55rem; font-weight: 700; margin: 0 0 .4rem; letter-spacing: -.025em; }
.auth-card .subtitle { font-size: .92rem; color: var(--text-muted); margin: 0 0 1.6rem; line-height: 1.5; }
.auth-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.auth-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.field { position: relative; margin-bottom: 1rem; }
.field input { width: 100%; padding: 1.15rem 1rem .5rem; font-size: .97rem; font-family: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; outline: none; transition: border-color .18s, box-shadow .18s; }
.field input:hover { border-color: var(--border-strong); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(233,180,76,.15); }
.field label { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: .95rem; color: var(--text-subtle); pointer-events: none; transition: all .15s; padding: 0 4px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 0; transform: translateY(-50%) scale(.85); color: var(--accent-strong); background: var(--surface); }
.field.has-action input { padding-right: 3rem; }
.field .code-input { letter-spacing: .45em; font-size: 1.35rem; font-weight: 700; text-align: center; padding-left: 1.5rem; }
.toggle-password { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: none; border-radius: 8px; color: var(--text-subtle); cursor: pointer; }
.toggle-password:hover { color: var(--accent); background: rgba(233,180,76,.08); }
.toggle-password svg { width: 20px; height: 20px; }
.pwd-meter { height: 5px; border-radius: 3px; background: #eef0f4; overflow: hidden; margin: -.4rem 0 1rem; }
.pwd-meter > div { height: 100%; width: 0; background: #ef4444; transition: width .25s, background .25s; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin: .3rem 0 1.4rem; font-size: .88rem; }
.remember-me { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; }
.remember-me input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); }
.btn-auth { width: 100%; padding: .85rem 1rem; font-size: .98rem; font-weight: 600; font-family: inherit; color: #1F2913; background: linear-gradient(120deg, #E9B44C 0%, #C9922E 100%); border: none; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; transition: transform .15s, box-shadow .15s; box-shadow: 0 8px 20px rgba(233,180,76,.3); }
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(233,180,76,.4); }
.auth-hint { margin: 1.4rem 0 0; font-size: .82rem; color: var(--text-muted); text-align: center; line-height: 1.5; }
.auth-hint a { color: var(--accent-strong); font-weight: 500; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-brand { padding: 2rem 1.5rem; min-height: auto; } .auth-content h2 { font-size: 1.8rem; } .auth-content p, .auth-features, .auth-footer { display: none; } .auth-form { padding: 1.25rem; align-items: flex-start; } .auth-card { padding: 1.8rem 1.4rem; } }
