/* Unified, responsive GoJoy account pages. */
:root {
    color-scheme: light;
    --auth-blue: #0b4b91;
    --auth-blue-dark: #07366d;
    --auth-ink: #16375d;
    --auth-muted: #6d8098;
    --auth-line: #dbe5f0;
}

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

body.gj-login {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 36px 24px;
    color: var(--auth-ink);
    background:
        radial-gradient(ellipse at 12% 12%, rgba(94, 171, 224, .22), transparent 35%),
        linear-gradient(135deg, #eaf2fa 0%, #f6f8fb 55%, #e9f0f7 100%);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.gj-auth-layout {
    width: min(100%, 1000px);
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(18, 54, 95, .2);
}

.gj-auth-showcase {
    min-height: 590px;
    padding: 42px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(5, 42, 83, .28), rgba(4, 33, 67, .88)),
        url("../images/webp/banner.webp") center / cover no-repeat,
        linear-gradient(145deg, #1467a9, #082f64);
}

.gj-auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: .08em;
    text-decoration: none;
}

.gj-auth-brand:hover,
.gj-auth-home-link:hover {
    color: inherit;
    text-decoration: none;
}

.gj-auth-brand img {
    width: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.gj-auth-brand small {
    display: block;
    margin-top: -3px;
    font-size: 9px;
    letter-spacing: .22em;
}

.gj-auth-pitch {
    max-width: 400px;
    margin: auto 0;
    padding: 60px 0;
}

.gj-auth-kicker {
    display: inline-block;
    margin-bottom: 15px;
    color: #c5e7ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.gj-auth-pitch h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.gj-auth-pitch p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.8;
}

.gj-auth-hotline {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.gj-auth-hotline:hover {
    color: #fff;
    text-decoration: none;
}

.gj-auth-hotline-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 20px;
}

.gj-auth-hotline small,
.gj-auth-hotline strong {
    display: block;
}

.gj-auth-hotline small {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
}

.gj-auth-hotline strong {
    font-size: 16px;
    letter-spacing: .04em;
}

.gj-login-card {
    padding: 64px clamp(32px, 5vw, 62px) 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.gj-login-card h1 {
    margin: 0 0 30px;
    color: #143b68;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.gj-login-mobile-brand {
    display: none;
}

.gj-login-text {
    margin: -12px 0 24px;
    color: var(--auth-muted);
    font-size: 13px;
}

.gj-status {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #b8e2d2;
    border-radius: 10px;
    color: #086246;
    background: #eaf8f2;
    font-size: 13px;
}

.gj-field {
    margin-bottom: 19px;
}

.gj-field label {
    display: block;
    margin-bottom: 7px;
    color: #294563;
    font-size: 12px;
    font-weight: 750;
}

.gj-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #cbd8e6;
    border-radius: 10px;
    outline: 0;
    color: var(--auth-ink);
    background: #fbfcfe;
    font: inherit;
    font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.gj-field input:hover {
    border-color: #9eb3cc;
}

.gj-field input:focus {
    border-color: var(--auth-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 75, 145, .12);
}

.gj-field input.is-invalid {
    border-color: #c43f49;
}

.gj-error {
    display: block;
    margin-top: 6px;
    color: #b62d39;
    font-size: 12px;
}

.gj-login-options {
    margin: 1px 0 23px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #5c7089;
    font-size: 12px;
}

.gj-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gj-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-blue);
}

.gj-login-card a {
    color: var(--auth-blue);
    font-weight: 700;
    text-decoration: none;
}

.gj-login-card a:hover {
    color: var(--auth-blue-dark);
    text-decoration: underline;
}

.gj-submit {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(100deg, #0b4b91, #1767b2);
    box-shadow: 0 8px 18px rgba(11, 75, 145, .2);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.gj-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(100deg, #07366d, #0b4b91);
    box-shadow: 0 11px 22px rgba(11, 75, 145, .27);
}

.gj-submit:focus-visible,
.gj-login-card a:focus-visible,
.gj-remember input:focus-visible {
    outline: 3px solid rgba(11, 75, 145, .35);
    outline-offset: 3px;
}

.gj-login-footer {
    margin: 20px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

.gj-auth-home-link {
    display: block;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
    color: #71839a !important;
    font-size: 12px;
    font-weight: 650 !important;
    text-align: center;
}

@media (max-width: 760px) {
    body.gj-login {
        padding: 18px 14px;
    }

    .gj-auth-layout {
        width: min(100%, 480px);
        min-height: 0;
        display: block;
        border-radius: 22px;
    }

    .gj-auth-showcase {
        display: none;
    }

    .gj-login-card {
        padding: 34px clamp(22px, 8vw, 38px) 24px;
    }

    .gj-login-mobile-brand {
        width: 58px;
        height: 58px;
        margin: 0 auto 20px;
        display: block;
    }

    .gj-login-mobile-brand img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gj-login-card h1 {
        margin-bottom: 24px;
        font-size: 25px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
