:root {
    --bg: #050d1f;
    --bg-soft: #0b1b3d;
    --card: rgba(7, 19, 43, 0.92);
    --text: #eaf5ff;
    --muted: #a5bdd9;
    --line: rgba(105, 145, 184, 0.35);
    --cyan: #59f7e4;
    --cyan-dark: #2bdac4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 10%, #152f57 0%, #060f22 42%, #050b17 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.logo-mark {
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(89, 247, 228, 0.55));
}

.logo-mark img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
    color: var(--muted);
}

.nav a {
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav .nav-login {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(89, 247, 228, 0.2);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 7px 0;
}

.auth-page {
    width: min(1020px, 90%);
    margin: 24px auto 40px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 0.94fr);
    gap: 18px;
    align-items: stretch;
}

.auth-side,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    min-width: 0;
}

.auth-side {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgba(9, 27, 61, 0.96), rgba(7, 19, 43, 0.9));
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(89, 247, 228, 0.1);
    color: var(--cyan);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.auth-side h1 {
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 8px;
}

.auth-side p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 44ch;
}

.auth-points {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-points div {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(89, 247, 228, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.auth-points strong {
    display: block;
    color: var(--cyan);
    margin-bottom: 4px;
}

.auth-card {
    padding: 22px;
}

.auth-card h2 {
    font-size: 1.65rem;
    margin-bottom: 6px;
}

.auth-card > p {
    color: var(--muted);
    margin-bottom: 18px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-form input {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(89, 247, 228, 0.7);
    box-shadow: 0 0 0 4px rgba(89, 247, 228, 0.1);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-row .remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-row .remember input {
    min-height: auto;
}

.primary-btn,
.secondary-btn,
.google-btn {
    min-height: 48px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.primary-btn {
    border: 0;
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224;
    cursor: pointer;
}

.secondary-btn {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.auth-divider {
    position: relative;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(165, 189, 217, 0.2);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: rgba(7, 19, 43, 0.92);
}

.google-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.google-logo {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.google-logo svg {
    width: 20px;
    height: 20px;
    display: block;
}

.google-btn:hover,
.secondary-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.auth-switch a {
    color: var(--cyan);
    font-weight: 700;
}

@keyframes authAtmosphere {
    0% { transform: translate3d(-2%, -2%, 0) scale(1); }
    100% { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 72px;
        right: 6%;
        width: min(280px, 80vw);
        flex-direction: column;
        align-items: flex-start;
        background: rgba(5, 11, 25, 0.95);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 18px;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav .nav-login {
        width: 100%;
        margin-top: 6px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 10px 5%;
    }

    .logo {
        gap: 6px;
        font-size: 0.95rem;
    }

    .logo-mark img {
        width: 50px;
        height: 50px;
    }

    .nav {
        top: 64px;
    }

    .auth-page {
        width: min(1180px, calc(100% - 20px));
    }

    .auth-side,
    .auth-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-form {
        gap: 12px;
    }
}
