:root {
    --bg-color: #0b0a0e;
    --card-bg: #141319;
    --input-bg: #18171e;
    --text-main: #f6f3fa;
    --text-muted: #9c98a7;
    --primary-color: #9868ff;
    --primary-hover: #aa83ff;
    --youtube-color: #ff4d4d;
    --youtube-hover: #ff6868;
    --danger: #ff6b72;
    --success: #49c58c;
    --border-color: rgba(255,255,255,0.085);
    --border-hover: rgba(152,104,255,0.42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body { min-height: 100%; }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(152,104,255,0.11), transparent 31rem),
        var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #51465f; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.split-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
    min-height: 100vh;
}

.form-side {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 34px;
    background: rgba(10, 9, 13, 0.62);
}

.form-container { width: 100%; max-width: 410px; }

.logo-area {
    text-align: left;
    margin-bottom: 34px;
}

.logo-area h1 {
    display: inline-block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 760;
    letter-spacing: -0.05em;
}

.logo-area h1::after {
    content: 'STREAMERS';
    margin-left: 0.18em;
    color: var(--primary-color);
    font-size: 0.78em;
    letter-spacing: -0.035em;
}

.logo-area p { color: var(--text-muted); font-size: 0.88rem; }

.auth-form { display: none; animation: authIn 0.28s ease both; }
.auth-form.active { display: block; }
.auth-form.hidden { display: none; }

@keyframes authIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    margin-bottom: 24px;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.2;
    text-align: left;
    font-weight: 680;
    letter-spacing: -0.035em;
}

.input-group { margin-bottom: 16px; position: relative; }
.input-group label {
    display: block;
    margin-bottom: 7px;
    color: #d7d3de;
    font-size: 0.78rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    color: var(--text-main);
    font-size: 0.92rem;
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.input-group input:hover { border-color: rgba(255,255,255,.15); }
.input-group input:focus {
    border-color: var(--primary-color);
    background: #1b1921;
    box-shadow: 0 0 0 3px rgba(152,104,255,.11);
}
.input-group input::placeholder { color: #625e69; }

.forgot-password { text-align: right; margin: -5px 0 20px; }
.forgot-password a,
.toggle-text a,
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.forgot-password a { font-size: .78rem; }
.forgot-password a:hover,
.toggle-text a:hover,
.btn-link:hover:not(:disabled) { color: var(--primary-hover); }

.btn-primary,
.btn-social {
    min-height: 47px;
    border-radius: 11px;
    font-size: .88rem;
    font-weight: 650;
    transition: transform .14s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.btn-primary {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8b56ef, #a879ff);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(96,52,173,.2);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 23px 0;
    color: #66616e;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.divider::before,
.divider::after { content: ''; height: 1px; flex: 1; background: var(--border-color); }

.social-logins { display: grid; gap: 10px; }
.btn-social {
    width: 100%;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border-color);
}
.btn-social:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.045); }
.btn-social:active { transform: translateY(0); }
.btn-twitch { color: #d9c7ff; border-color: rgba(145,70,255,.2); background: rgba(145,70,255,.08); }
.btn-youtube svg { color: var(--youtube-color); }
.btn-kick { color: #b9ff9e !important; border-color: rgba(83,252,24,.18) !important; background: rgba(83,252,24,.055) !important; }
.btn-kick svg { fill: #53fc18; }

.toggle-text {
    margin-top: 22px;
    color: var(--text-muted);
    text-align: center;
    font-size: .82rem;
}

.checklist-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .24s ease;
    background: rgba(255,255,255,.02);
    border-radius: 10px;
}
.checklist-container.show {
    max-height: 155px;
    opacity: 1;
    margin-top: 9px;
    padding: 11px;
    border: 1px solid var(--border-color);
}
.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: .74rem;
}
.check-item:last-child { margin-bottom: 0; }
.check-item .icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border: 1px solid #625e69;
    border-radius: 50%;
}
.check-item.valid { color: var(--success); }
.check-item.valid .icon { position: relative; border-color: var(--success); background: var(--success); }
.check-item.valid .icon::after {
    content: '';
    width: 3px;
    height: 6px;
    position: absolute;
    top: 2px;
    border: solid #07120d;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.45;
    text-align: left;
    font-weight: 550;
}
.alert.hidden { display: none; }
.alert.error { color: #ff9ca1; background: rgba(255,79,88,.07); border: 1px solid rgba(255,79,88,.18); }
.alert.success { color: #8ce1b7; background: rgba(73,197,140,.07); border: 1px solid rgba(73,197,140,.18); }

.mail-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    background: rgba(152,104,255,.08);
    border: 1px solid rgba(152,104,255,.15);
    border-radius: 13px;
}
.mail-icon svg { width: 22px; height: 22px; }

.code-input {
    color: var(--primary-color) !important;
    text-align: center;
    font-size: 1.45rem !important;
    font-weight: 760;
    letter-spacing: 18px;
    padding-left: 30px !important;
}
.code-input::placeholder { color: rgba(156,152,167,.3); }

.btn-link {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: .8rem;
}
.btn-link:disabled { color: var(--text-muted); opacity: .55; cursor: not-allowed; }

.banner-side {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 7vw, 100px);
    color: #fff;
    background:
        radial-gradient(circle at 70% 18%, rgba(174,129,255,.24), transparent 28rem),
        radial-gradient(circle at 12% 88%, rgba(99,56,174,.2), transparent 25rem),
        #111016;
    border-left: 1px solid var(--border-color);
}
.banner-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
}

.banner-content { position: relative; z-index: 1; width: min(640px, 100%); margin: 0 auto; }
.banner-content h2 {
    max-width: 600px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.35rem, 4.4vw, 4.4rem);
    line-height: .98;
    text-align: left;
    font-weight: 720;
    letter-spacing: -.062em;
}
.banner-content > p {
    max-width: 560px;
    margin-bottom: 34px;
    color: #aaa5b2;
    font-size: .98rem;
    line-height: 1.7;
}

.dashboard-mockup {
    position: relative;
    width: min(600px, 100%);
    padding: 18px;
    background: rgba(14,13,18,.84);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
    backdrop-filter: blur(12px);
}
.mockup-header {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}
.mockup-header::before { content: 'LarvoStreamers'; color: #fff; font-size: .78rem; font-weight: 700; }
.mockup-header::after { content: 'ONLINE'; color: #75d9aa; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.mockup-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.mockup-card {
    width: auto !important;
    height: 118px;
    position: relative;
    overflow: hidden;
    background: #19171f;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
}
.mockup-card::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 16px;
    height: 7px;
    border-radius: 99px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 20px 0 rgba(152,104,255,.14), 0 40px 0 rgba(255,255,255,.05), 0 60px 0 rgba(255,255,255,.04);
}

@media (max-width: 980px) {
    .split-layout { grid-template-columns: 1fr; }
    .banner-side { display: none; }
    .form-side { min-height: 100vh; padding: 36px 22px; }
}

@media (max-width: 480px) {
    .form-side { align-items: flex-start; padding-top: 40px; }
    .logo-area { margin-bottom: 28px; }
}
