:root {
    --auth-ink: #111a31;
    --auth-muted: #667085;
    --auth-line: #dce3ee;
    --auth-soft: #f4f7fb;
    --auth-primary: #2757fd;
    --auth-primary-dark: #1942cf;
    --auth-danger: #b42318;
    --auth-success: #067647;
}

html,
body.auth-bg {
    min-height: 100%;
    background: #fff;
}

body.auth-bg {
    margin: 0;
    color: var(--auth-ink);
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
}

.auth-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1.25rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 5% 0%, rgba(39, 87, 253, .07), transparent 25rem),
        #fff;
}

.auth-home {
    display: inline-flex;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

.auth-home img,
.auth-aside__brand img {
    width: 174px;
    height: 48px;
    object-fit: contain;
}

.auth-content {
    width: 100%;
    display: grid;
    place-items: center;
    flex: 1;
    padding-block: clamp(2.25rem, 7vh, 5rem);
}

.auth-card {
    width: min(100%, 500px);
}

.auth-card--wide {
    width: min(100%, 560px);
}

.auth-heading {
    margin-bottom: 2rem;
}

.auth-kicker {
    margin: 0 0 .65rem;
    color: var(--auth-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.auth-heading p:not(.auth-kicker) {
    max-width: 42rem;
    margin: .9rem 0 0;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.auth-social {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .75rem 1rem;
    border: 1px solid var(--auth-line);
    border-radius: .75rem;
    background: #fff;
    color: #344054;
    font-weight: 700;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-social:hover {
    border-color: #a8b7d0;
    color: var(--auth-ink);
    box-shadow: 0 8px 24px rgba(17, 26, 49, .08);
    transform: translateY(-1px);
}

.auth-social img {
    width: 19px;
    height: 19px;
}

.auth-social__mark {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: .25rem;
    background: #0a66c2;
    color: #fff;
    font-weight: 900;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.6rem 0;
    color: #98a2b3;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

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

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label,
.auth-content .captcha-control > label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
    color: #27314a;
    font-size: .9rem;
    font-weight: 750;
}

.auth-field__optional {
    color: #98a2b3;
    font-size: .78rem;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-content .form-control {
    width: 100%;
    min-height: 50px;
    padding: .8rem .95rem;
    border: 1px solid #cfd8e6;
    border-radius: .75rem;
    background: #fff;
    color: var(--auth-ink);
    font-size: .96rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-content .form-control::placeholder {
    color: #98a2b3;
}

.auth-content .form-control:hover {
    border-color: #a8b7d0;
}

.auth-content .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(39, 87, 253, .12);
}

.auth-content .form-control.is-invalid {
    border-color: #f04438;
}

.auth-input-wrap .form-control {
    padding-right: 3.25rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .65rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: #667085;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: var(--auth-soft);
    color: var(--auth-primary);
}

.auth-field-hint {
    margin: .45rem 0 0;
    color: var(--auth-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .85rem;
    margin: .3rem 0 1.5rem;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #475467;
    font-size: .9rem;
    line-height: 1.55;
    cursor: pointer;
}

.auth-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: .1rem;
    accent-color: var(--auth-primary);
}

.auth-link {
    color: var(--auth-primary);
    font-weight: 750;
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border-radius: .75rem;
    font-size: .96rem;
    font-weight: 750;
    box-shadow: 0 9px 24px rgba(39, 87, 253, .2);
}

.auth-submit.btn-light {
    box-shadow: none;
}

.auth-switch {
    margin: 1.5rem 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: .92rem;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.35rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: .75rem;
    font-size: .88rem;
    line-height: 1.5;
}

.auth-alert__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
}

.auth-alert p,
.auth-alert ul {
    margin: .2rem 0 0;
}

.auth-alert ul {
    padding-left: 1.1rem;
}

.auth-alert--error {
    border-color: #fecdca;
    background: #fffbfa;
    color: var(--auth-danger);
}

.auth-alert--error .auth-alert__icon {
    background: #d92d20;
}

.auth-alert--success {
    border-color: #abefc6;
    background: #f6fef9;
    color: var(--auth-success);
}

.auth-alert--success .auth-alert__icon {
    background: #079455;
}

.auth-success-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #e8fff2, #d1fadf);
    color: #079455;
    box-shadow: 0 10px 28px rgba(7, 148, 85, .12);
}

.auth-note {
    margin: 1.4rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #d9e2ff;
    border-radius: .75rem;
    background: #f7f9ff;
    color: #475467;
    line-height: 1.6;
}

.auth-note strong {
    display: block;
    margin-bottom: .15rem;
    color: var(--auth-ink);
}

.auth-actions {
    display: grid;
    gap: .75rem;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.4rem;
    padding-top: 1.25rem;
}

.auth-footer a {
    color: var(--auth-muted);
    font-size: .84rem;
    font-weight: 650;
}

.auth-aside {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 5.5rem);
    background:
        radial-gradient(circle at 80% 15%, rgba(87, 126, 255, .48), transparent 22rem),
        radial-gradient(circle at 5% 90%, rgba(46, 211, 183, .14), transparent 25rem),
        #10182e;
    color: #fff;
}

.auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.auth-aside__content {
    position: relative;
    z-index: 1;
    width: min(100%, 590px);
}

.auth-aside__brand {
    display: none;
    margin-bottom: 3.5rem;
}

.auth-aside__brand img {
    filter: brightness(0) invert(1);
}

.auth-aside__eyebrow {
    margin: 0 0 .9rem;
    color: #9cb2ff !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-aside h2 {
    max-width: 530px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 4.2vw, 4.4rem);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.auth-aside h2 + p {
    max-width: 540px;
    margin: 1.25rem 0 0;
    color: #c7d0e5;
    font-size: 1.03rem;
    line-height: 1.75;
}

.auth-aside__visual {
    margin: 1.8rem -8% 1rem;
}

.auth-aside__visual img {
    display: block;
    width: 116%;
    height: auto;
    max-height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, .28));
}

.auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.2rem;
    margin: 0;
    padding: 0;
    color: #dce3f2;
    font-size: .8rem;
    font-weight: 650;
    list-style: none;
}

.auth-trust span {
    color: #5ee0b7;
}

.captcha-control {
    max-width: none !important;
    margin-bottom: 1.25rem;
}

@media (min-width: 1350px) {
    .auth-aside__brand {
        display: inline-flex;
    }
}

@media (max-width: 1099.98px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(370px, .72fr);
    }

    .auth-aside {
        padding-inline: 2.5rem;
    }

    .auth-aside h2 {
        font-size: 2.8rem;
    }

    .auth-aside__visual {
        margin-inline: -15%;
    }
}

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

    .auth-main {
        min-height: 100vh;
        min-height: 100svh;
    }

    .auth-aside {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-main {
        padding: 1rem 1.1rem 1.25rem;
    }

    .auth-home img {
        width: 150px;
        height: 42px;
    }

    .auth-content {
        place-items: start stretch;
        padding-block: 2.5rem 3rem;
    }

    .auth-heading {
        margin-bottom: 1.65rem;
    }

    .auth-heading h1 {
        font-size: 2rem;
    }

    .auth-social-grid {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
    }
}

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