/* Login / sign up — centered gate (loads with home.css) */
body.page-auth main {
    width: min(1040px, calc(100% - 40px));
}

.auth-gate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0 64px;
}

.auth-gate-visual {
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.22), transparent 55%),
        rgba(11, 18, 32, 0.55);
    box-shadow: var(--shadow);
}

.auth-gate-logo {
    display: grid;
    width: min(280px, 70%);
    aspect-ratio: 1;
    place-items: center;
    padding: 24px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.04);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.28);
}

.auth-gate-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-gate-card {
    padding: 36px 32px 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-gate-card h1 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.auth-gate-lead {
    margin: 0 0 28px;
    color: var(--silver);
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 600;
}

.auth-gate-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, 0.45);
    border-radius: 8px;
    color: #fecaca;
    font-size: 0.88rem;
    line-height: 1.55;
    background: rgba(220, 38, 38, 0.12);
}

.auth-gate-alert code {
    color: var(--ice-white);
    font-size: 0.82rem;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    background: #5865f2;
    box-shadow: 0 20px 48px rgba(88, 101, 242, 0.45);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(88, 101, 242, 0.55);
}

.discord-btn--disabled {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.discord-btn-icon {
    flex-shrink: 0;
}

.auth-gate-note {
    margin: 18px 0 0;
    color: var(--cool-gray);
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

.auth-gate-legal {
    margin: 16px 0 0;
    color: var(--steel-blue);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.auth-gate-legal a {
    color: var(--silver);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-gate-legal a:hover {
    color: var(--ice-white);
}

.auth-gate-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--cool-gray);
    font-size: 0.92rem;
    text-align: center;
}

.auth-gate-switch a {
    color: var(--electric-blue);
    font-weight: 800;
}

.auth-gate-switch a:hover {
    color: var(--ice-white);
}

@media (max-width: 900px) {
    .auth-gate {
        grid-template-columns: 1fr;
    }

    .auth-gate-visual {
        min-height: 200px;
    }

    .auth-gate-logo {
        width: min(200px, 50%);
    }
}

@media (max-width: 680px) {
    .auth-gate {
        padding: 24px 0 48px;
    }

    .auth-gate-card {
        padding: 26px 20px 22px;
    }
}
