:root {
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, monospace;
    --bg: #070707;
    --panel: #101010;
    --card: #141414;
    --border: #2a2a2a;
    --text: #f4f4f5;
    --muted: #9ca3af;
    --accent: #e2c97e;
    --danger: #f87171;
    --success: #3ecf8e;
}

* { box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-display);
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
}

.auth-hero {
    position: relative;
    padding: 40px 48px 32px;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 30% 40%, rgba(226, 201, 126, 0.08), transparent 55%),
        linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 40% 50%, black 20%, transparent 75%);
    pointer-events: none;
}

.hero-brand,
.brand {
    font-family: 'Syne', var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.6;
    overflow: visible;
}

.hero-brand span,
.brand span {
    color: var(--accent);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 48px 0 28px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.hero-title em {
    color: var(--accent);
    font-style: normal;
}

.hero-sub {
    margin: 0;
    max-width: 420px;
    color: #c4c4c4;
    font-size: 16px;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    z-index: 1;
    min-height: 420px;
}

.hero-visual img {
    display: block;
    width: min(720px, 100%);
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: var(--panel);
    border-left: 1px solid #1d1d1d;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card > .brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.35;
    margin: 0 0 8px;
    overflow: visible;
}

.auth-sub {
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.55;
    font-size: 14px;
}

.auth-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8b8b8b;
    pointer-events: none;
}

input, select, textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    line-height: 1.5;
}

.input-wrap input {
    margin-bottom: 0;
}

.input-wrap .input-icon + input,
.input-wrap.has-icon input {
    padding-left: 42px;
}

.input-wrap.has-toggle input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e8e8e8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 3;
}

.toggle-password:hover {
    color: var(--accent);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.toggle-password .icon-eye-off {
    display: none;
}

.input-wrap.is-visible .icon-eye {
    display: none;
}

.input-wrap.is-visible .icon-eye-off {
    display: block;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(226, 201, 126, 0.15);
}

.btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    overflow: visible;
    background: var(--accent);
    color: #111;
    cursor: pointer;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    margin-top: 12px;
}

.hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.error { color: var(--danger); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.status { color: var(--success); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }

.footer {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    overflow: visible;
}

.footer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-block;
    line-height: 1.7;
    padding: 2px 0;
    overflow: visible;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0;
}

.otp-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
#timer { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 12px; }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { border-left: 0; min-height: 100vh; }
}
