/* Shared authentication page shell: Login and Create Account */
body.auth-page {
    --auth-footer-height: 96px;
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: #FAFCFE;
    color: var(--Neutrals-Panel-Gray, #626262);
    font-family: var(--font-family-body, "DM Sans"), Helvetica, sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page a {
    text-decoration: none;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
    align-items: center;
    gap: clamp(48px, 7vw, 120px);
    width: min(calc(100% - 48px), 1180px);
    min-height: calc(100dvh - var(--auth-footer-height));
    margin: 0 auto;
    padding: 56px 0;
}

.auth-shell--register {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 600px);
    align-items: start;
    gap: clamp(48px, 6vw, 96px);
    width: min(calc(100% - 48px), 1240px);
    padding-bottom: 64px;
}

.auth-hero {
    display: flex;
    min-width: 0;
}

.auth-shell--register .auth-hero {
    position: static;
    top: auto;
    align-self: stretch;
    align-items: center;
}

.auth-hero__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.auth-logo {
    display: block;
    width: 148px;
    height: auto;
    margin: 0 0 36px;
}

.auth-hero__copy {
    width: 100%;
    max-width: 520px;
}

.auth-heading {
    margin: 0;
    font-family: var(--font-family-heading, "DM Sans");
    font-size: var(--font-size-xl, 24px);
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: 0.48px;
    background: var(--Core-Skyline-Gradient, linear-gradient(124deg, rgba(0, 113, 206, 0.80) -8.3%, #005AB6 43.6%, #062F87 97.5%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subheading {
    margin: 8px 0 0;
    color: var(--Neutrals-Panel-Gray, #626262);
    font-family: var(--font-family-body, "DM Sans");
    font-size: var(--font-size-sm, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.32px;
}

.auth-map {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: min(100%, 560px);
    margin: 40px auto 0;
    overflow: visible;
    pointer-events: none;
}

.auth-shell--register .auth-map {
    margin-top: 56px;
}

.auth-map__image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

.auth-panel {
    justify-self: end;
    width: 100%;
    max-width: 480px;
    min-width: 0;
}

.auth-shell--register .auth-panel {
    max-width: 600px;
}

.auth-card {
    width: 100%;
    min-width: 0;
    padding: 32px;
    border: 1px solid rgba(0, 90, 182, 0.06);
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 16px 48px rgba(6, 47, 135, 0.10);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 28px 0;
    color: var(--Neutrals-Panel-Gray, #626262);
    font-family: var(--font-family-body, "DM Sans");
    font-size: 14px;
    line-height: 125%;
    letter-spacing: 0.28px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #C4C4C4;
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    min-width: 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #F7F7F7;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 10px 12px 40px 4px rgba(0, 90, 182, 0.06);
}

.auth-google > form {
    width: 100%;
    height: 100%;
    margin: 0;
}

.auth-google__button,
.auth-google__button:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #1F1F1F;
    font-family: var(--font-family-body, "DM Sans");
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.auth-google__button:hover {
    background: #F8FBFE;
}

.auth-google__button:focus-visible {
    outline: 2px solid rgba(0, 113, 206, 0.80);
    outline-offset: -2px;
}

.auth-google__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-google__button img {
    width: 18px;
    height: 18px;
}

.auth-google.is-disabled {
    opacity: 0.6;
}

.auth-google.is-disabled .auth-google__button {
    cursor: not-allowed;
}

.auth-providers {
    display: grid;
    gap: 12px;
    width: 100%;
}

.auth-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    min-width: 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #000000;
    border-radius: 12px;
    background: #000000;
    box-shadow: 10px 12px 40px 4px rgba(0, 0, 0, 0.08);
}

.auth-apple > form {
    width: 100%;
    height: 100%;
    margin: 0;
}

.auth-apple__button,
.auth-apple__button:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 11px;
    background: #000000;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.auth-apple__button:hover {
    background: #171717;
}

.auth-apple__button:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: -4px;
    box-shadow: 0 0 0 2px rgba(0, 113, 206, 0.80);
}

.auth-apple__button img {
    width: 16px;
    height: 20px;
    object-fit: contain;
}

.auth-apple.is-disabled {
    opacity: 0.55;
}

.auth-apple.is-disabled .auth-apple__button {
    cursor: not-allowed;
}

.auth-footer {
    position: relative;
    width: 100%;
    height: var(--auth-footer-height);
    padding: 0;
    overflow: hidden;
    background: linear-gradient(174deg, rgba(0, 113, 206, 0.8) 8.3%, #005AB6 43.6%, #062F87 97.5%);
}

.auth-footer__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    padding: 32px 4px;
}

.auth-footer__logo {
    display: block;
    width: 127.97px;
    height: 32px;
    margin: 0;
}

.auth-footer__map {
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 712px;
    height: auto;
    transform: translateX(-2%);
    pointer-events: none;
}

.auth-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-social__label {
    color: #FFFFFF;
    font-family: var(--font-family-body, "DM Sans");
    font-size: 14px;
    font-weight: 400;
    line-height: 125%;
    letter-spacing: 0.28px;
}

.auth-social__links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-social__links a {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
}

.auth-social__links img {
    display: block;
    width: 24px;
    height: 24px;
}

.auth-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F7FD;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.auth-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

@media (max-width: 960px) {
    body.auth-page {
        --auth-footer-height: 78px;
    }

    .auth-shell,
    .auth-shell--register {
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 32px;
        width: min(calc(100% - 32px), 560px);
        padding: 32px 0 48px;
    }

    .auth-shell--register {
        width: min(calc(100% - 32px), 600px);
    }

    .auth-hero,
    .auth-shell--register .auth-hero {
        position: static;
        top: auto;
        justify-self: stretch;
    }

    .auth-logo {
        width: 120px;
        margin-bottom: 24px;
    }

    .auth-hero__copy {
        max-width: 100%;
        text-align: left;
    }

    .auth-map {
        display: none;
    }

    .auth-panel,
    .auth-shell--register .auth-panel {
        justify-self: center;
        max-width: 100%;
    }

    .auth-footer__inner {
        width: calc(100% - 48px);
        padding: 23px 0;
    }

    .auth-footer__logo {
        width: 104px;
        height: 26px;
    }
}

@media (max-width: 560px) {
    .auth-shell,
    .auth-shell--register {
        gap: 24px;
        width: min(calc(100% - 24px), 480px);
        padding: 24px 0 40px;
    }

    .auth-logo {
        width: 104px;
        margin-bottom: 20px;
    }

    .auth-heading {
        font-size: 20px;
        line-height: 110%;
        letter-spacing: 0.4px;
    }

    .auth-subheading {
        font-size: 12px;
        line-height: 125%;
        letter-spacing: 0.24px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 16px;
    }

    .auth-social__label {
        display: none;
    }

    .auth-footer__map {
        width: 420px;
        transform: translateX(-5%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-loader {
        transition: none;
    }
}
