:root {
    color-scheme: dark;
    --nf-red: #e50914;
    --nf-red-hover: #f6121d;
    --nf-text: #ffffff;
    --nf-muted: #b3b3b3;
    --nf-dim: #8c8c8c;
    --nf-input: #333333;
    --nf-input-focus: #454545;
    --nf-panel: rgba(0, 0, 0, 0.76);
    --nf-line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--nf-text);
    background: #050505;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.52) 42%, rgba(0,0,0,.82) 100%),
        linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.88) 100%),
        url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=2200&q=80');
    background-size: cover;
    background-position: center;
}

.auth-topbar {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 56px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nf-red);
    text-decoration: none;
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
}
.auth-brand img { width: 42px; height: 42px; }
.auth-brand > span {
    margin-top: 3px;
    display: inline-flex;
    align-items: baseline;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}
.auth-brand-rogue { font-weight: 900; color: var(--nf-red); }
.auth-brand-popcorn { font-weight: 200; color: #fff; letter-spacing: 3px; margin-left: 1px; }

.auth-home-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 4px;
    background: rgba(229, 9, 20, .95);
}
.auth-home-link:hover { background: var(--nf-red-hover); }

.auth-main {
    flex: 1;
    display: grid;
    place-items: start center;
    padding: 22px 18px 72px;
}

.auth-panel {
    width: min(450px, 100%);
    min-height: 590px;
    padding: 48px 48px 40px;
    border-radius: 4px;
    background: var(--nf-panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .58);
}

.auth-title {
    margin: 0 0 22px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
}
.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--nf-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.auth-tab.active { background: #fff; color: #111; }

.auth-message {
    margin: 0 0 16px;
    padding: 12px 13px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #fff;
    background: #664d03;
    border-left: 4px solid #f5c518;
}
.auth-message.error { background: #3b1114; border-left-color: var(--nf-red); }
.auth-message.success { background: #12351f; border-left-color: #46d369; }

.auth-form-wrap { display: none; }
.auth-form-wrap.active { display: block; }
.auth-form { display: grid; gap: 14px; }

.field { position: relative; }
.field label {
    display: block;
    margin-bottom: 7px;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 700;
}
.field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 14px 15px;
    background: var(--nf-input);
    color: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
}
.field input::placeholder { color: #8c8c8c; }
.field input:focus {
    background: var(--nf-input-focus);
    border-color: #737373;
}

.auth-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 4px;
    padding: 0 18px;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.auth-btn-primary { margin-top: 10px; background: var(--nf-red); }
.auth-btn-primary:hover { background: var(--nf-red-hover); }
.auth-btn-secondary { background: rgba(255,255,255,.18); }
.auth-btn-secondary:hover { background: rgba(255,255,255,.26); }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    color: var(--nf-muted);
    font-size: 13px;
}
.auth-row button,
.auth-row a,
.auth-footer button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.auth-row button:hover,
.auth-row a:hover,
.auth-footer button:hover,
.auth-footer a:hover { text-decoration: underline; }

.auth-footer {
    margin-top: 26px;
    color: #737373;
    font-size: 15px;
    line-height: 1.6;
}
.auth-footer a,
.auth-footer strong { color: #fff; text-decoration: none; }
.auth-legal {
    margin-top: 14px;
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.5;
}
.auth-footer-bar {
    padding: 26px clamp(22px, 4vw, 56px);
    background: rgba(0,0,0,.72);
    color: #737373;
    font-size: 13px;
}
.auth-footer-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.auth-footer-inner a { color: #8c8c8c; text-decoration: none; }
.auth-footer-inner a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .auth-page { background-image: linear-gradient(180deg, #050505 0%, #121212 100%); }
    .auth-topbar { height: 74px; padding: 0 18px; }
    .auth-brand { font-size: 30px; }
    .auth-brand img { width: 34px; height: 34px; }
    .auth-main { place-items: start stretch; padding: 0 0 34px; }
    .auth-panel {
        width: 100%;
        min-height: 0;
        padding: 28px 22px 30px;
        background: rgba(0,0,0,.92);
        box-shadow: none;
        border-top: 1px solid var(--nf-line);
        border-bottom: 1px solid var(--nf-line);
    }
    .auth-footer-bar { padding: 22px; }
}
