/* ==========================================================================
   MotorShield — Authentication pages (login, access denied, ...)
   The whole page's accent color follows the active slide (--slide-accent) —
   there's no single fixed brand color to fall in or out of favour with;
   button, focus rings, links all shift with the slider. Palette rotates
   through amber / violet / maroon / magenta — no red, no blue.
   ========================================================================== */

.auth-body {
    --radius: 8px;
    --radius-sm: 5px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .07), 0 0 0 1px rgba(0, 0, 0, .04);

    /* light theme (default) */
    --auth-page-bg: #f1f5f9;
    --auth-surface: #ffffff;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-field-bg: #ffffff;
    --auth-field-border: #e2e8f0;

    margin: 0;
    background: var(--auth-page-bg);
    font-family: 'Work Sans', var(--ins-body-font-family, "Open Sans", sans-serif);
    color: var(--auth-text);
}

/* dark theme — toggled on the login page itself, independent of the app shell.
   The attribute lives on <html> (set by a pre-paint inline script in
   _AuthLayout) so there's no flash of the wrong theme on load. */
html[data-auth-theme="dark"] .auth-body {
    --auth-page-bg: #0e0d12;
    --auth-surface: #19171e;
    --auth-text: #f1eef5;
    --auth-muted: #9d99a6;
    --auth-field-bg: #201d26;
    --auth-field-border: #322e3a;
}

/* ---------------------------------------------------------------------- */
/*  Layout shell                                                          */
/* ---------------------------------------------------------------------- */

.auth-wrapper {
    /* the live accent — set on this element by JS (--slide-accent), so it
       must be re-declared here (not just on .auth-body) to actually pick up
       the current value; custom properties only cascade downward. */
    --auth-accent: var(--slide-accent, #D9472B);
    --auth-accent-rgb: var(--slide-accent-rgb, 217, 71, 43);

    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--auth-page-bg);
    transition: background-color .25s ease;
}

.auth-wrapper-centered {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* theme toggle — floats over the form panel */
.auth-theme-toggle {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--auth-field-border);
    background: var(--auth-surface);
    color: var(--auth-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, transform .3s ease;
}

.auth-theme-toggle:hover {
    color: var(--auth-accent);
    border-color: var(--auth-accent);
    transform: rotate(180deg);
}

.auth-theme-toggle .ti-moon { display: inline-block; }
.auth-theme-toggle .ti-sun { display: none; }
html[data-auth-theme="dark"] .auth-theme-toggle .ti-moon { display: none; }
html[data-auth-theme="dark"] .auth-theme-toggle .ti-sun { display: inline-block; }

/* ---------------------------------------------------------------------- */
/*  Left — brand slider panel                                             */
/* ---------------------------------------------------------------------- */

.auth-aside {
    position: relative;
    flex: 0 0 44%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    padding: 3rem 0 3rem 3.25rem;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(120% 100% at 12% -10%, #241a2e 0%, #150f1c 45%, #0a0810 100%);
}

/* thin motion streaks — abstract velocity, not literal motorbike art */
.auth-speed-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, .07);
    transform: rotate(-27deg);
    z-index: 0;
    pointer-events: none;
}

.auth-speed-line-1 { top: 9%; left: -18%; width: 62%; height: 3px; background: rgba(255, 255, 255, .1); }
.auth-speed-line-2 { top: 17%; left: -24%; width: 74%; }
.auth-speed-line-3 { bottom: 13%; left: 46%; width: 58%; height: 3px; background: rgba(255, 255, 255, .08); }
.auth-speed-line-4 { bottom: 7%; left: 36%; width: 50%; }

/* hard-edged diagonal accent stripe — recolors + pulses with the active slide */
.auth-stripe {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-stripe-main {
    clip-path: polygon(90% 0, 100% 0, 96% 100%, 84% 100%);
    background: var(--auth-accent);
    box-shadow: -22px 0 70px 0 var(--auth-accent);
    opacity: .85;
    animation: auth-stripe-pulse 3.2s ease-in-out infinite;
    transition: background-color .6s ease, box-shadow .6s ease;
}

@keyframes auth-stripe-pulse {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}

.auth-stripe-edge {
    clip-path: polygon(99% 0, 100% 0, 99.4% 100%, 97.6% 100%);
    background: rgba(255, 255, 255, .8);
}

.auth-aside-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: .6rem 1.05rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    margin-bottom: 1.75rem;
    margin-right: 3.25rem;
}

.auth-aside-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* ---- slider: a real sliding track, not a crossfade ---- */

.auth-slide-viewport {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    overflow: hidden;
    min-height: 20rem;
}

.auth-slide-track {
    display: flex;
    height: 100%;
    transition: transform .65s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.auth-slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3.5rem;
}

.auth-slide-content > * {
    opacity: 0;
    transform: translateY(14px);
}

.auth-slide-content.is-playing > * {
    animation: auth-content-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-slide-content.is-playing > *:nth-child(1) { animation-delay: .05s; }
.auth-slide-content.is-playing > *:nth-child(2) { animation-delay: .14s; }
.auth-slide-content.is-playing > *:nth-child(3) { animation-delay: .22s; }
.auth-slide-content.is-playing > *:nth-child(4) { animation-delay: .3s; }
.auth-slide-content.is-playing > *:nth-child(5) { animation-delay: .4s; }

@keyframes auth-content-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-slide-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.35rem;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4));
    animation: auth-icon-pop .6s cubic-bezier(.34, 1.56, .64, 1) both !important;
}

@keyframes auth-icon-pop {
    from { opacity: 0; transform: scale(.4) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.auth-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--auth-accent);
    margin-bottom: 1rem;
    transition: color .5s ease;
}

.auth-aside-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.85rem, 2.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #f5f4f2;
    margin-bottom: .9rem;
}

.auth-aside-subtitle {
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 1.35rem;
    max-width: 22rem;
}

/* per-slide feature chips — the extra content */
.auth-slide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.auth-slide-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    backdrop-filter: blur(6px);
}

.auth-slide-chip i {
    color: var(--auth-accent);
    font-size: .95rem;
    transition: color .5s ease;
}

/* ---- controls: dots + prev/next arrows ---- */

.auth-slide-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.75rem 3.25rem 0 0;
}

.auth-slide-dots {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.auth-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .25);
    padding: 0;
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.auth-slide-dot.is-active {
    width: 28px;
    border-radius: 4px;
    background: var(--auth-accent);
    box-shadow: 0 0 12px 0 var(--auth-accent);
}

.auth-slide-arrows {
    display: flex;
    gap: .5rem;
}

.auth-slide-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .12s ease;
}

.auth-slide-arrow:hover {
    border-color: var(--auth-accent);
    color: #fff;
    background: var(--auth-accent);
}

.auth-slide-arrow:active {
    transform: scale(.92);
}

.auth-aside-footer {
    position: relative;
    z-index: 2;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
    margin: 1.5rem 3.25rem 0 0;
}

/* ---------------------------------------------------------------------- */
/*  Right — form panel                                                    */
/* ---------------------------------------------------------------------- */

.auth-main {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--auth-page-bg);
    transition: background-color .25s ease;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--auth-surface);
    border-radius: var(--radius);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-card), 0 20px 44px -22px rgba(15, 10, 20, .28);
    animation: auth-card-in .5s cubic-bezier(.22, 1, .36, 1) both;
    transition: background-color .25s ease, box-shadow .25s ease;
}

@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-logo img {
    height: 34px;
}

.auth-card-header {
    margin-bottom: 2.25rem;
}

.auth-card-header h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: .35rem;
    transition: color .25s ease;
}

.auth-card-header p {
    color: var(--auth-muted);
    font-size: .92rem;
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/*  Form fields                                                           */
/* ---------------------------------------------------------------------- */

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

.auth-alert-error:not(:empty):not(.validation-summary-valid) {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    font-size: .86rem;
    margin-bottom: 1.25rem;
}

.auth-alert-error ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-field .form-control {
    height: 3.1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--auth-field-border);
    background: var(--auth-field-bg);
    color: var(--auth-text);
    font-size: .95rem;
    padding-left: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .25s ease, color .25s ease;
}

.auth-field .form-control:focus {
    background: var(--auth-field-bg);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(var(--auth-accent-rgb), .16);
}

.auth-field .form-control.input-validation-error {
    border-color: #dc2626;
}

.auth-field > label {
    padding-left: 1rem;
    color: var(--auth-muted);
    font-weight: 500;
}

.auth-field .form-control:focus ~ label,
.auth-field > label.auth-label-active {
    color: var(--auth-accent);
}

.auth-field-password .form-control {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 3.1rem;
    width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--auth-muted);
    font-size: 1.1rem;
    z-index: 5;
    transition: color .15s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-accent);
}

.invalid-feedback {
    font-size: .78rem;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-left: 0;
}

.auth-remember .form-check-input {
    margin: 0;
    accent-color: var(--auth-accent);
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.auth-remember .form-check-label {
    font-size: .86rem;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-forgot-link {
    font-size: .86rem;
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
    transition: color .5s ease;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/*  Submit button — follows the slide accent, subtle sheen sweep          */
/* ---------------------------------------------------------------------- */

.auth-submit-btn {
    position: relative;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 3.1rem;
    border: 0;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    background: var(--auth-accent);
    box-shadow: 0 10px 22px -10px rgba(var(--auth-accent-rgb), .55);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .18s ease, background-color .5s ease, opacity .18s ease;
}

.auth-submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: auth-btn-sheen 3.5s ease-in-out infinite;
}

@keyframes auth-btn-sheen {
    0%, 40% { transform: translateX(-120%); }
    60%, 100% { transform: translateX(120%); }
}

.auth-submit-btn:hover,
.auth-submit-btn:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(var(--auth-accent-rgb), .65);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-icon {
    transition: transform .18s ease;
}

.auth-submit-btn:hover .auth-submit-icon {
    transform: translateX(4px);
}

.auth-submit-btn.is-loading {
    pointer-events: none;
    opacity: .85;
}

.auth-submit-btn.is-loading .auth-submit-icon {
    display: none;
}

.auth-submit-btn.is-loading .auth-submit-label::after {
    content: "";
    display: inline-block;
    width: .85rem;
    height: .85rem;
    margin-left: .55rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    vertical-align: -2px;
    animation: auth-spin .7s linear infinite;
}

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

.auth-card-footer {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: .82rem;
    color: var(--auth-muted);
}

/* ---------------------------------------------------------------------- */
/*  Status page (access denied, etc.)                                     */
/* ---------------------------------------------------------------------- */

.auth-card-status {
    text-align: center;
    max-width: 440px;
    background: var(--auth-surface);
    border-radius: var(--radius);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-card), 0 20px 40px -18px rgba(0, 0, 0, .14);
}

.auth-status-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.9rem;
}

.auth-status-icon-danger {
    background: #fef2f2;
    color: #dc2626;
}

.auth-card-status h2 {
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: .5rem;
}

.auth-card-status p {
    color: var(--auth-muted);
    margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------------------- */
/*  Responsive                                                            */
/* ---------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-aside {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        height: 18rem;
        padding: 1.5rem 0 1.25rem 1.5rem;
    }

    .auth-aside-brand {
        margin-bottom: 1rem;
        margin-right: 1.5rem;
    }

    .auth-slide-viewport {
        min-height: 0;
    }

    .auth-slide {
        padding-right: 1.75rem;
    }

    .auth-slide-icon {
        width: 40px;
        height: 40px;
        margin-bottom: .6rem;
    }

    .auth-aside-title {
        font-size: 1.4rem;
    }

    .auth-aside-subtitle {
        display: none;
    }

    .auth-slide-chips {
        display: none;
    }

    .auth-slide-controls {
        margin: .75rem 1.5rem 0 0;
    }

    .auth-slide-arrows {
        display: none;
    }

    .auth-aside-footer {
        display: none;
    }

    .auth-main {
        flex: 1 1 100%;
        padding: 2rem 1.25rem;
    }

    .auth-theme-toggle {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-aside {
        height: 15rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-card-header h2 {
        font-size: 1.35rem;
    }
}

/* ========================================================================== 
   Login v2 — focused website-style composition
   ========================================================================== */

.auth-login-v2 {
    --auth-accent: #d9472b;
    --auth-accent-rgb: 217, 71, 43;
    min-height: 100svh;
    background: var(--auth-page-bg);
}

.auth-showcase {
    position: relative;
    flex: 1 1 58%;
    min-width: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 4.5rem);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background:
        radial-gradient(100% 100% at 8% 0%, #382647 0%, transparent 54%),
        linear-gradient(145deg, #1b1222 0%, #100b15 58%, #08070b 100%);
}

.auth-showcase-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-showcase-stripe {
    position: absolute;
    z-index: -1;
    top: -12%;
    right: 8%;
    width: clamp(70px, 8vw, 128px);
    height: 128%;
    opacity: .9;
    transform: rotate(9deg);
    background: linear-gradient(180deg, #f06a4e 0%, #d9472b 48%, #982512 100%);
    box-shadow: 0 0 90px rgba(217, 71, 43, .24);
}

.auth-showcase-stripe::after {
    content: "";
    position: absolute;
    inset: 0 0 0 76%;
    background: rgba(255, 255, 255, .82);
    clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
    opacity: .22;
}

.auth-showcase-glow {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.auth-showcase-glow-one {
    top: -12%;
    right: -8%;
    width: 34rem;
    height: 34rem;
    background: rgba(124, 58, 237, .22);
}

.auth-showcase-glow-two {
    bottom: -30%;
    left: -12%;
    width: 30rem;
    height: 30rem;
    background: rgba(217, 71, 43, .13);
}

.auth-brand {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    display: inline-flex;
    text-decoration: none;
}

.auth-brand-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 276px;
    height: 92px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.auth-brand-frame img {
    display: block;
    width: 258px;
    height: auto;
    max-height: 95px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .32));
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    width: min(100%, 630px);
    padding: clamp(2rem, 6vh, 5rem) 0;
}

.auth-kicker {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, .7);
    font-family: 'Oswald', sans-serif;
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.auth-kicker-mark {
    width: 30px;
    height: 3px;
    background: var(--auth-accent);
    box-shadow: 0 0 14px rgba(var(--auth-accent-rgb), .55);
}

.auth-showcase h1 {
    margin: 0;
    color: #f8f5fa;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.25rem, 6.3vw, 6.8rem);
    font-weight: 700;
    line-height: .93;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.auth-showcase h1 span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .72);
}

.auth-showcase-copy {
    max-width: 35rem;
    margin: 1.75rem 0 2.1rem;
    color: rgba(255, 255, 255, .62);
    font-size: clamp(.95rem, 1.15vw, 1.08rem);
    line-height: 1.75;
}

.auth-benefits { display: flex; flex-wrap: wrap; gap: 1rem; }
.auth-benefit {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 215px;
    padding: .75rem .9rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
}

.auth-benefit-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--auth-accent-rgb), .34);
    border-radius: 6px;
    background: rgba(var(--auth-accent-rgb), .12);
    color: #f06a4e;
    font-size: 1.1rem;
}

.auth-benefit strong,
.auth-benefit small { display: block; }
.auth-benefit strong { color: rgba(255, 255, 255, .92); font-size: .84rem; }
.auth-benefit small { margin-top: .1rem; color: rgba(255, 255, 255, .45); font-size: .7rem; }

.auth-showcase-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, .4);
    font-size: .72rem;
}

.auth-trust-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.1rem;
}

.auth-trust-items span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .55);
}

.auth-trust-items i { color: #f06a4e; font-size: .9rem; }
.auth-copyright {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}
.auth-copyright strong { color: rgba(255, 255, 255, .62); font-weight: 600; }
.auth-copyright-separator {
    width: 3px;
    height: 3px;
    margin: 0 .25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}

.auth-login-v2 .auth-main {
    flex: 0 0 42%;
    min-width: 430px;
    min-height: 100svh;
    padding: clamp(2rem, 4vw, 5rem);
    background: var(--auth-page-bg);
}

.auth-form-wrap { width: min(100%, 430px); }
.auth-mobile-brand { display: none; }

.auth-login-v2 .auth-card {
    max-width: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.auth-login-v2 .auth-card-header { margin-bottom: 2.4rem; }
.auth-card-kicker {
    display: block;
    margin-bottom: .7rem;
    color: var(--auth-accent);
    font-family: 'Oswald', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-login-v2 .auth-card-header h2 {
    margin-bottom: .65rem;
    color: var(--auth-text);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.auth-login-v2 .auth-card-header p { max-width: 23rem; line-height: 1.6; }
.auth-field-group { margin-bottom: 1.35rem; }
.auth-label-row { display: flex; justify-content: space-between; gap: 1rem; }
.auth-label {
    display: inline-block;
    margin-bottom: .55rem;
    color: var(--auth-text);
    font-size: .82rem;
    font-weight: 600;
}

.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 1rem;
    color: var(--auth-muted);
    font-size: 1.05rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-login-v2 .auth-input-wrap .form-control {
    height: 3.35rem;
    padding: .75rem 3rem .75rem 2.8rem;
    border: 1.5px solid var(--auth-field-border);
    border-radius: 7px;
    background: var(--auth-field-bg);
    color: var(--auth-text);
    font-size: .9rem;
}

.auth-login-v2 .auth-input-wrap .form-control::placeholder { color: color-mix(in srgb, var(--auth-muted) 68%, transparent); }
.auth-login-v2 .auth-input-wrap .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(var(--auth-accent-rgb), .12);
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-accent); }

.auth-login-v2 .auth-password-toggle { height: 3.35rem; }
.auth-login-v2 .auth-form-row { margin: -.1rem 0 1.8rem; }
.auth-login-v2 .auth-remember .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-login-v2 .auth-submit-btn {
    height: 3.35rem;
    border-radius: 7px;
    letter-spacing: .01em;
}

.auth-login-v2 .auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--auth-field-border);
}

.auth-login-v2 .auth-theme-toggle {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 7px;
}

@media (max-width: 1100px) {
    .auth-showcase { flex-basis: 52%; }
    .auth-login-v2 .auth-main { flex-basis: 48%; min-width: 410px; }
    .auth-showcase h1 { font-size: clamp(3rem, 6vw, 5rem); }
    .auth-benefits { display: grid; width: min(100%, 290px); }
}

@media (max-width: 850px) {
    .auth-login-v2 { display: block; background: var(--auth-page-bg); }
    .auth-showcase {
        min-height: auto;
        height: 245px;
        padding: 1.4rem 1.5rem;
    }
    .auth-brand-frame { min-width: 205px; height: 62px; padding: 0; }
    .auth-brand-frame img { width: 198px; max-width: 198px; max-height: 70px; }
    .auth-showcase-content { padding: 1.55rem 0 0; }
    .auth-kicker { margin-bottom: .7rem; font-size: .65rem; }
    .auth-showcase h1 { font-size: clamp(2.35rem, 9vw, 3.5rem); line-height: .96; }
    .auth-showcase-copy,
    .auth-benefits,
    .auth-showcase-footer { display: none; }
    .auth-showcase-stripe { right: 10%; width: 72px; }
    .auth-login-v2 .auth-main {
        min-width: 0;
        min-height: calc(100svh - 245px);
        padding: 2.5rem 1.5rem;
    }
    .auth-form-wrap { margin: 0 auto; }
    .auth-login-v2 .auth-theme-toggle {
        position: fixed;
        top: 1.45rem;
        right: 1.35rem;
        border-color: rgba(255, 255, 255, .22);
        background: rgba(15, 10, 20, .58);
        color: #fff;
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 480px) {
    .auth-showcase { height: 205px; padding: 1.1rem; }
    .auth-brand-frame { min-width: 174px; height: 52px; }
    .auth-brand-frame img { width: 168px; max-width: 168px; max-height: 61px; }
    .auth-showcase-content { padding-top: 1.2rem; }
    .auth-kicker { letter-spacing: .13em; }
    .auth-showcase h1 { font-size: 2.15rem; }
    .auth-login-v2 .auth-main {
        min-height: calc(100svh - 205px);
        align-items: flex-start;
        padding: 2rem 1.1rem 1.5rem;
    }
    .auth-login-v2 .auth-card-header { margin-bottom: 1.75rem; }
    .auth-login-v2 .auth-card-header h2 { font-size: 1.8rem; }
    .auth-login-v2 .auth-card-footer { align-items: flex-start; text-align: left; }
}

@media (min-width: 851px) {
    html:has(.auth-login-v2),
    .auth-body:has(.auth-login-v2) {
        height: 100%;
        overflow: hidden;
    }
}

@media (max-width: 850px) and (max-height: 760px) {
    .auth-showcase { height: 180px; }
    .auth-showcase-content { padding-top: .55rem; }
    .auth-showcase h1 { font-size: 1.95rem; }
    .auth-kicker { margin-bottom: .4rem; }
    .auth-v2-controls { margin-top: .55rem; }
    .auth-login-v2 .auth-main {
        min-height: calc(100svh - 180px);
        padding-top: 1.35rem;
        padding-bottom: 1.1rem;
    }
    .auth-login-v2 .auth-card-header { margin-bottom: 1.2rem; }
    .auth-login-v2 .auth-card-header p { line-height: 1.4; }
    .auth-field-group { margin-bottom: .85rem; }
    .auth-login-v2 .auth-form-row { margin-bottom: 1rem; }
    .auth-login-v2 .auth-card-footer { margin-top: 1rem; padding-top: .8rem; }
}

@media (max-height: 820px) and (min-width: 851px) {
    .auth-showcase { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .auth-brand-frame { height: 66px; }
    .auth-brand-frame img { width: 218px; max-height: 76px; }
    .auth-showcase-content { padding: 1rem 0; }
    .auth-showcase h1 { font-size: clamp(3rem, 5vw, 4.8rem); }
    .auth-showcase-copy { margin-top: 1rem; margin-bottom: 1.2rem; line-height: 1.55; }
    .auth-benefit { padding: .55rem .7rem; }
    .auth-v2-controls { margin-top: 1rem; }
    .auth-login-v2 .auth-main { padding-top: 2rem; padding-bottom: 2rem; }
    .auth-login-v2 .auth-card-header { margin-bottom: 1.5rem; }
    .auth-field-group { margin-bottom: 1rem; }
    .auth-login-v2 .auth-form-row { margin-bottom: 1.2rem; }
    .auth-login-v2 .auth-card-footer { margin-top: 1.25rem; padding-top: 1rem; }
}

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

/* Login v2 slider — keeps the composition stable while content moves */

.auth-login-v2 .auth-showcase-content {
    overflow: hidden;
}

.auth-showcase-viewport {
    width: 100%;
    overflow: hidden;
}

.auth-login-v2 .auth-slide-track {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform .72s cubic-bezier(.22, 1, .36, 1);
}

.auth-login-v2 .auth-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    padding: 0 1px 0 0;
}

.auth-login-v2 .auth-slide-content {
    width: 100%;
}

.auth-login-v2 .auth-slide-content.is-playing > * {
    animation: auth-v2-content-in .6s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-login-v2 .auth-slide-content.is-playing > *:nth-child(1) { animation-delay: .08s; }
.auth-login-v2 .auth-slide-content.is-playing > *:nth-child(2) { animation-delay: .15s; }
.auth-login-v2 .auth-slide-content.is-playing > *:nth-child(3) { animation-delay: .22s; }
.auth-login-v2 .auth-slide-content.is-playing > *:nth-child(4) { animation-delay: .29s; }

@keyframes auth-v2-content-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-v2-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 630px);
    margin-top: 2.15rem;
}

.auth-login-v2 .auth-slide-dots {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.auth-login-v2 .auth-slide-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .24);
    box-shadow: none;
    transition: width .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.auth-login-v2 .auth-slide-dot.is-active {
    width: 34px;
    background: var(--auth-accent);
    box-shadow: 0 0 16px rgba(var(--auth-accent-rgb), .45);
}

.auth-login-v2 .auth-slide-arrows { display: flex; gap: .55rem; }
.auth-login-v2 .auth-slide-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(8px);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.auth-login-v2 .auth-slide-arrow:hover {
    border-color: rgba(var(--auth-accent-rgb), .7);
    background: var(--auth-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Strong specificity prevents vendor .btn hover styles from turning it white. */
.auth-body .auth-login-v2 .auth-submit-btn,
.auth-body .auth-login-v2 .auth-submit-btn:visited {
    border: 1px solid var(--auth-accent);
    background: var(--auth-accent);
    color: #fff;
}

.auth-body .auth-login-v2 .auth-submit-btn:hover,
.auth-body .auth-login-v2 .auth-submit-btn:focus-visible {
    border-color: #b8321c;
    background: linear-gradient(110deg, #b8321c 0%, #d9472b 55%, #f06a4e 100%);
    color: #fff;
    box-shadow: 0 16px 30px -13px rgba(var(--auth-accent-rgb), .75);
}

.auth-body .auth-login-v2 .auth-submit-btn:active {
    border-color: #982512;
    background: #b8321c;
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(var(--auth-accent-rgb), .65);
}

@media (max-width: 850px) {
    .auth-login-v2 .auth-showcase-content { padding-top: 1.35rem; }
    .auth-login-v2 .auth-slide { padding: 0; }
    .auth-v2-controls { margin-top: 1.05rem; }
    .auth-login-v2 .auth-slide-arrows { display: none; }
}

@media (max-width: 480px) {
    .auth-login-v2 .auth-showcase-content { padding-top: 1rem; }
    .auth-v2-controls { margin-top: .8rem; }
    .auth-login-v2 .auth-slide-dot { width: 7px; height: 7px; }
    .auth-login-v2 .auth-slide-dot.is-active { width: 27px; }
}
