/* =========================
   AUTH PAGES (LOGIN / REGISTER)
   ========================= */

:root {
    --bg-main: #0d0d0d;
    --bg-panel: #111111;
    --bg-panel-soft: #1a1a1a;

    --accent-red: #e50914;
    --accent-red-soft: #e5091483;
    --accent-blue: #00c8ff;
    --accent-blue-soft: rgba(0, 200, 255, 0.7);

    --text-main: #ffffff;
    --text-dim: #aaaaaa;
    --text-muted: #777777;

    --shadow-strong: 0 10px 40px black;
    --shadow-soft: 0 0 10px rgba(0, 141, 164, 0.7);
    --shadow-softer: 0 0 10px rgba(0, 141, 164, 0.4);
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, Arial, sans-serif;
    overflow: hidden;
}

.topbar {
    background: rgba(0, 0, 0, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logoWarp {
    width: 230px;
    height: auto;
    padding-bottom: 10px;
}

.logoWarp text {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 70px;
    letter-spacing: 2px;
    fill: var(--accent-red);
    dominant-baseline: middle;
}

.logoWarp {
    animation: fadeInLogo .8s ease-out;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authPage {
    min-height: 100vh;
    margin-top: -76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(229, 9, 20, 0.15), transparent 45%),
        var(--bg-main);
}

/* AUTH CARD */
.authCard {
    width: 100%;
    max-width: 420px;
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 14px;
    box-shadow: var(--shadow-strong);
    animation: authFade .5s ease;
}

/* TITLE */
.authCard h1 {
    margin: 0 0 10px;
    font-size: 32px;
    color: var(--text-main);
}

.authCard p {
    margin: 0 0 25px;
    color: var(--text-muted);
    font-size: 14px;
}

/* FORM */
.authForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.authForm label {
    font-size: 13px;
    color: var(--text-dim);
}

/* INPUTS */
.authForm input {
    width: calc(100% - 30px);
    padding: 12px 14px;
    background: var(--bg-panel-soft);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    transition: border .2s, box-shadow .2s, background .2s;
}

.authForm input::placeholder {
    color: var(--text-muted);
}

.authForm input:focus {
    background: #000;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px var(--accent-red-soft);
    outline: none;
}

/* SUBMIT BUTTON */
.authBtn {
    margin-top: 10px;
    padding: 12px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.authBtn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    background: #ff0f1a;
}

.authBtn:active {
    transform: translateY(0);
}

/* FOOT LINKS */
.authFooter {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.authFooter a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
}

.authFooter a:hover {
    text-decoration: underline;
}

/* ERROR / SUCCESS */
.authError {
    background: rgba(229, 9, 20, 0.15);
    color: #ffb3b3;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--accent-red-soft);
}

.authSuccess {
    background: rgba(0, 200, 255, 0.15);
    color: #b8f1ff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--accent-blue-soft);
}

/* ANIMATION */
@keyframes authFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .authCard {
        padding: 30px 24px;
        border-radius: 12px;
    }

    .authCard h1 {
        font-size: 26px;
    }
}