/* login page styles (moved out of the 4 locale pages; shared and cacheable). */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --auth-page: #eef4ff;
    --auth-card: rgba(255, 255, 255, 0.94);
    --auth-ink: #10233f;
    --auth-muted: #5f718b;
    --auth-line: #d8e2f1;
    --auth-blue: #0b5bd3;
    --auth-blue-deep: #0f3565;
    --auth-teal: #0b7c84;
    --auth-ms: #0078d4;
    --auth-google: #4285f4;
    --auth-info-bg: #edf5ff;
    --auth-info-bd: #bed7fb;
    --auth-info-ink: #184a86;
    --auth-danger-bg: #fff0f0;
    --auth-danger-bd: #f2c6c6;
    --auth-danger-ink: #8f2323;
    --auth-shadow: 0 28px 72px rgba(15, 33, 62, 0.16);
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(880px 520px at 12% 8%, #ffffff 0%, #f1f6ff 42%, transparent 70%),
        radial-gradient(620px 360px at 88% 18%, rgba(43, 180, 194, 0.18) 0%, transparent 68%),
        linear-gradient(180deg, #f5f6fb 0%, #eef0ff 100%);
}

.header-blue {
    padding-bottom: 0 !important;
}

.auth-shell {
    position: relative;
    min-height: calc(100vh - 78px);
    padding: 36px 16px 60px;
    overflow: hidden;
}

.auth-shell__bg-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}

.auth-shell__bg-orb--one {
    width: 280px;
    height: 280px;
    top: 42px;
    left: max(-40px, calc(50% - 620px));
    background: rgba(11, 91, 211, 0.10);
}

.auth-shell__bg-orb--two {
    width: 220px;
    height: 220px;
    right: max(-30px, calc(50% - 590px));
    bottom: 50px;
    background: rgba(11, 124, 132, 0.12);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    margin: 0 auto;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
    gap: 22px;
    align-items: stretch;
}

.auth-hero,
.auth-card {
    border-radius: 28px;
    box-shadow: var(--auth-shadow);
    border: 1px solid rgba(13, 44, 79, 0.08);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 32px 30px;
    background: linear-gradient(145deg, #0b1028 0%, #1b1f5e 45%, #3730a3 100%);
    color: #f5f9ff;
}

.auth-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -92px;
    top: -84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.auth-hero::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    left: -36px;
    bottom: -44px;
    border-radius: 32px;
    transform: rotate(18deg);
    background: rgba(255, 255, 255, 0.10);
}

.auth-hero__inner {
    position: relative;
    z-index: 1;
}

.auth-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f4f8ff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-hero__title {
    margin: 18px 0 14px;
    font-family: 'Sora', sans-serif;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.auth-hero__lead {
    margin: 0 0 20px;
    max-width: 44ch;
    color: rgba(243, 248, 255, 0.88);
    font-size: 15px;
    line-height: 1.65;
}

.auth-hero__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-hero__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(244, 248, 255, 0.94);
    line-height: 1.5;
}

.auth-hero__list li::before {
    content: '';
    width: 9px;
    height: 9px;
    margin-top: 8px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: #8fd7ff;
    box-shadow: 0 0 0 6px rgba(143, 215, 255, 0.16);
}

.auth-hero__foot {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(245, 249, 255, 0.72);
    font-size: 13px;
}

.auth-card {
    padding: 28px;
    background: var(--auth-card);
    backdrop-filter: blur(10px);
}

.auth-card__top {
    margin-bottom: 18px;
}

.auth-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1c4f92;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.auth-card__title {
    margin: 16px 0 8px;
    font-family: 'Sora', sans-serif;
    font-size: 31px;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #0f274a;
}

.auth-card__subtitle {
    margin: 0;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 36ch;
}

.auth-card__alerts {
    min-height: 0;
    margin-bottom: 18px;
}

.auth-alert {
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.5;
    animation: authFade .18s ease-out;
}

.auth-alert + .auth-alert {
    margin-top: 10px;
}

.auth-alert--info {
    background: var(--auth-info-bg);
    border-color: var(--auth-info-bd);
    color: var(--auth-info-ink);
}

.auth-alert--error {
    background: var(--auth-danger-bg);
    border-color: var(--auth-danger-bd);
    color: var(--auth-danger-ink);
}

.auth-card__providers {
    display: grid;
    gap: 12px;
}

.oauth-provider {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(11, 42, 82, 0.14);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.oauth-provider:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(11, 42, 82, 0.18);
    filter: brightness(1.03);
}

.oauth-provider:focus-visible,
.auth-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 91, 211, 0.22), 0 16px 28px rgba(11, 42, 82, 0.18);
}

.oauth-provider--microsoft {
    background: linear-gradient(135deg, #0078d4, #1590e7);
}

.oauth-provider--google {
    background: linear-gradient(135deg, #4285f4, #5b9cff);
}

.oauth-provider__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.oauth-provider__mark svg {
    width: 24px;
    height: 24px;
    display: block;
}

.oauth-provider__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.oauth-provider__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.oauth-provider__meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
}

.auth-card__divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    color: #75859b;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card__divider::before,
.auth-card__divider::after {
    content: '';
    height: 1px;
    background: var(--auth-line);
}

.auth-card__foot {
    display: grid;
    gap: 10px;
}

.auth-note {
    margin: 0;
    color: #607089;
    font-size: 13px;
    line-height: 1.6;
}

.auth-link {
    color: var(--auth-blue-deep);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-blue);
    text-decoration: none;
}

@keyframes authFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .auth-hero,
    .auth-card {
        border-radius: 24px;
    }

    .auth-hero {
        padding: 28px 24px;
    }

    .auth-card {
        padding: 24px 22px;
    }

    .auth-hero__title {
        font-size: 32px;
        max-width: 14ch;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 24px 12px 40px;
    }

    .auth-hero,
    .auth-card {
        border-radius: 20px;
    }

    .auth-hero,
    .auth-card {
        padding: 22px 18px;
    }

    .auth-hero__title {
        font-size: 28px;
    }

    .auth-card__title {
        font-size: 27px;
    }

    .oauth-provider {
        grid-template-columns: 42px 1fr;
        padding: 11px 12px;
    }

    .oauth-provider__mark {
        width: 42px;
        height: 42px;
    }
}
