:root {
    --auth-brand: #a71930;
    --auth-brand-dark: #741021;
    --auth-brand-soft: #f8e9ec;
    --auth-teal: #35a99e;
    --auth-ink: #172033;
    --auth-muted: #687386;
    --auth-border: #dfe4eb;
    --auth-surface: #ffffff;
    --auth-canvas: #f4f6f9;
    --auth-danger: #b42318;
}

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

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

body.auth-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--auth-canvas);
    color: var(--auth-ink);
    font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.05fr);
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 7%, rgba(92, 205, 193, .3), transparent 27%),
        radial-gradient(circle at 10% 92%, rgba(255, 255, 255, .12), transparent 31%),
        linear-gradient(145deg, #7e1023 0%, #a71930 52%, #bd2a3d 100%);
    color: #fff;
    flex-direction: column;
}

.auth-showcase::before,
.auth-showcase::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-showcase::before {
    top: -190px;
    right: -190px;
    width: 520px;
    height: 520px;
}

.auth-showcase::after {
    right: -90px;
    bottom: -250px;
    width: 570px;
    height: 570px;
    border-width: 80px;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 13px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(54, 5, 14, .18);
}

.auth-brand img {
    display: block;
    width: min(285px, 68vw);
    height: auto;
}

.auth-showcase__content {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: auto 0;
    padding: 60px 0;
}

.auth-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-showcase h1 {
    max-width: 560px;
    margin: 0;
    color: #fff;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.auth-showcase__lead {
    max-width: 530px;
    margin: 20px 0 30px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.7;
}

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

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 500;
}

.auth-benefits i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #92e0d8;
    font-size: 11px;
    place-items: center;
}

.auth-showcase__footer {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.auth-main {
    display: flex;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 72px);
    background:
        radial-gradient(circle at 100% 0, rgba(167, 25, 48, .055), transparent 30%),
        var(--auth-canvas);
    flex-direction: column;
}

.auth-mobile-brand {
    display: none;
}

.auth-main__content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 475px);
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(215, 221, 230, .88);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(25, 34, 51, .11);
}

.auth-card__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--auth-brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    color: var(--auth-ink);
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.025em;
}

.auth-card__intro {
    margin: 10px 0 28px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert.validation-summary-errors,
.auth-notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(180, 35, 24, .18);
    border-radius: 10px;
    background: #fff1f0;
    color: var(--auth-danger);
    font-size: 13px;
    line-height: 1.45;
}

.auth-alert.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert.validation-summary-valid,
.auth-alert:empty {
    display: none;
}

.auth-notice {
    border-color: rgba(20, 127, 133, .18);
    background: #edfafa;
    color: #116c72;
}

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

.auth-field__label {
    display: block;
    margin-bottom: 8px;
    color: #394457;
    font-size: 13px;
    font-weight: 700;
}

.auth-control {
    position: relative;
}

.auth-control > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #8792a5;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 45px;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-input::placeholder {
    color: #a2abb9;
}

.auth-input:hover {
    border-color: #c7ced9;
}

.auth-input:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 4px rgba(167, 25, 48, .09);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: inline-grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7b8799;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    outline: none;
    background: var(--auth-brand-soft);
    color: var(--auth-brand);
}

.field-validation-error {
    display: block;
    margin-top: 6px;
    color: var(--auth-danger);
    font-size: 12px;
}

.input-validation-error {
    border-color: var(--auth-danger);
}

.auth-form__options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
    margin: 2px 0 22px;
}

.auth-link {
    color: var(--auth-brand);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--auth-brand-dark);
    text-decoration: underline;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--auth-brand), #bd2a3d);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(167, 25, 48, .2);
    transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    outline: none;
    box-shadow: 0 15px 28px rgba(167, 25, 48, .27);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .78;
}

.auth-submit .fa-circle-notch {
    display: none;
}

.auth-submit.is-loading .fa-circle-notch {
    display: inline-block;
    animation: auth-spin .8s linear infinite;
}

.auth-submit.is-loading .fa-arrow-right,
.auth-submit.is-loading .fa-paper-plane {
    display: none;
}

.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px 0 0;
    color: #8a94a5;
    font-size: 11px;
}

.auth-security i {
    color: #2a966c;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.auth-main__footer {
    margin: 24px 0 0;
    color: #98a1b0;
    font-size: 11px;
    text-align: center;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

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

    .auth-showcase {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
        padding: 28px 20px;
    }

    .auth-mobile-brand {
        display: inline-flex;
        align-self: center;
        margin-bottom: 24px;
        padding: 10px 14px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(25, 34, 51, .08);
    }

    .auth-mobile-brand img {
        width: min(260px, 70vw);
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .auth-main {
        padding: 22px 14px;
    }

    .auth-card {
        padding: 27px 22px;
        border-radius: 17px;
    }

    .auth-card__intro {
        margin-bottom: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input,
    .auth-submit,
    .auth-password-toggle {
        transition: none;
    }

    .auth-submit.is-loading .fa-circle-notch {
        animation: none;
    }
}
