:root {
    --login-bg: #e9ebe7;
    --login-surface: #090a0c;
    --login-text: #f7f8f4;
    --login-muted: #8f949c;
    --login-accent: #31c5ca;
}

* { box-sizing: border-box; }

html,
body.login-page { min-height: 100%; }

body.login-page {
    margin: 0;
    overflow: hidden;
    background: var(--login-bg);
    color: var(--login-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-stage {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 0;
}

.login-shell {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(380px, 44%);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--login-surface);
    box-shadow: none;
}

.login-visual {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    border-radius: 0 28px 28px 0;
    background-image: linear-gradient(180deg, rgba(2, 5, 9, 0.03) 20%, rgba(2, 5, 9, 0.22) 58%, rgba(2, 5, 9, 0.9) 100%), var(--campaign-image);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.login-visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.17), transparent 45%);
    pointer-events: none;
}

.login-brand {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.login-brand > span:last-child {
    display: block;
    color: #fff;
}

.login-brand__mark {
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: #2bc4cc;
}

.login-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-campaign {
    position: absolute;
    right: 44px;
    bottom: 58px;
    left: 44px;
    z-index: 1;
    max-width: 520px;
}

.login-campaign__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.24);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.login-campaign h2 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4.2vw, 59px);
    font-weight: 520;
    line-height: 0.99;
    letter-spacing: -0.052em;
}

.login-campaign p {
    max-width: 410px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
}

.login-campaign__progress {
    position: absolute;
    right: 44px;
    bottom: 29px;
    left: 44px;
    z-index: 1;
    display: flex;
    gap: 6px;
}

.login-campaign__progress span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.login-campaign__progress .is-active {
    width: 36px;
    background: #fff;
}

.login-content {
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 60px 50px;
}

.login-content__inner { width: min(100%, 410px); }

.login-kicker {
    margin: 0 0 13px;
    color: var(--login-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-content h1 {
    margin: 0;
    color: var(--login-text);
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 520;
    line-height: 1;
    letter-spacing: -0.055em;
}

.login-title__accent { color: var(--login-accent); }

.login-copy {
    min-height: 44px;
    margin: 19px 0 34px;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -10px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.08);
    color: #fda4a4;
    font-size: 13px;
    line-height: 1.45;
}

.login-alert i {
    margin-top: 2px;
    font-size: 17px;
}

.google-login {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 56px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    background: #f7f8f4;
    color: #111316;
    font-size: 14px;
    font-weight: 680;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.google-login:hover {
    background: #fff;
    color: #050607;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.google-login:focus-visible {
    outline: 3px solid rgba(49, 197, 202, 0.62);
    outline-offset: 4px;
}

.google-login__icon {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.google-login__icon img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.google-login__arrow {
    position: absolute;
    right: 20px;
    font-size: 19px;
    transition: transform 180ms ease;
}

.google-login:hover .google-login__arrow { transform: translateX(3px); }

.login-access-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #666c74;
    font-size: 11px;
}

.login-access-note i {
    color: #747b84;
    font-size: 15px;
}

.login-footer {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    margin: 0;
    color: #464b52;
    font-size: 10px;
    letter-spacing: 0.045em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    body.login-page { overflow: auto hidden; }

    .login-stage {
        display: block;
        padding: 0;
        background: var(--login-surface);
    }

    .login-shell {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(250px, 36dvh) 1fr;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-visual {
        min-height: 250px;
        border-radius: 0 0 24px 24px;
        background-position: center 38%;
    }

    .login-brand {
        top: 22px;
        left: 22px;
    }

    .login-campaign {
        right: 24px;
        bottom: 30px;
        left: 24px;
    }

    .login-campaign__eyebrow,
    .login-campaign p,
    .login-campaign__progress { display: none; }

    .login-campaign h2 {
        max-width: 460px;
        font-size: clamp(29px, 8vw, 42px);
        line-height: 1.02;
    }

    .login-content {
        min-height: auto;
        justify-content: flex-start;
        padding: 58px 28px 58px;
    }

    .login-content__inner { width: min(100%, 470px); }

    .login-footer { bottom: 18px; }
}

@media (max-width: 520px) {
    .login-shell { grid-template-rows: minmax(220px, 31dvh) 1fr; }
    .login-visual { min-height: 220px; }
    .login-campaign h2 { font-size: 30px; }
    .login-content { padding: 44px 22px 60px; }
    .login-content h1 { font-size: 40px; }
    .login-copy { margin-bottom: 27px; }
    .google-login {
        min-height: 56px;
        padding-right: 48px;
        padding-left: 48px;
    }
}

@media (max-height: 700px) and (min-width: 901px) {
    .login-shell { min-height: 100dvh; }
    .login-stage { padding: 0; }
    .login-visual,
    .login-content { min-height: 100dvh; }
}

@media (prefers-reduced-motion: reduce) {
    .google-login,
    .google-login__arrow { transition: none; }
}
