/* =========================================================
   UNIVAS AUTO - AUTHENTICATION UI
   Path: public/assets/css/auth.css
   ========================================================= */

:root {
    --ua-red: #ef1727;
    --ua-red-2: #ff2f3f;
    --ua-red-dark: #c70e1c;
    --ua-red-soft: #fff1f3;
    --ua-ink: #101827;
    --ua-text: #334155;
    --ua-muted: #77849a;
    --ua-line: #d9e0e9;
    --ua-page: #f6f7fb;
    --ua-white: #ffffff;
    --ua-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --ua-font:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body.ua-auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--ua-page);
    color: var(--ua-ink);
    font-family: var(--ua-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ua-auth-body button,
body.ua-auth-body input {
    font: inherit;
}

body.ua-auth-body a {
    color: inherit;
    text-decoration: none;
}

body.ua-auth-body button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   PAGE + SPLIT SCREEN
   ========================================================= */

.ua-auth-page {
    min-height: 100svh;
    background: #fff;
}

.ua-auth-shell {
    width: 100%;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(560px, 0.92fr);
    background: #fff;
}

/* =========================================================
   LEFT AUTOMOTIVE HERO
   ========================================================= */

.ua-auth-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #0b111b;
}

.ua-auth-hero__image {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    transform: scale(1.01);
}

.ua-auth-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(6, 10, 18, 0.8) 0%,
            rgba(6, 10, 18, 0.56) 38%,
            rgba(6, 10, 18, 0.2) 74%,
            rgba(6, 10, 18, 0.13) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 11, 18, 0.28) 0%,
            rgba(7, 11, 18, 0.03) 43%,
            rgba(7, 11, 18, 0.72) 100%
        );
}

.ua-auth-hero__glow {
    position: absolute;
    z-index: -2;
    left: -24%;
    bottom: -28%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(239, 23, 39, 0.35) 0%,
        rgba(239, 23, 39, 0) 68%
    );
    filter: blur(3px);
    pointer-events: none;
}

.ua-auth-hero__content {
    position: relative;
    width: min(100% - 92px, 760px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 54px 0 42px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.ua-auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.ua-auth-brand img {
    width: clamp(230px, 23vw, 350px);
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.26));
}

.ua-auth-hero__copy {
    width: min(100%, 650px);
    margin-top: clamp(68px, 10vh, 126px);
}

.ua-auth-kicker {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(10, 16, 27, 0.42);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.97);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ua-auth-kicker__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--ua-red-2);
    box-shadow: 0 0 0 5px rgba(239, 23, 39, 0.15);
}

.ua-auth-hero__title {
    margin: 26px 0 16px;
    color: #fff;
    font-size: clamp(48px, 4.1vw, 76px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.ua-auth-hero__title span {
    display: block;
    margin-top: 8px;
    color: #ff3343;
}

.ua-auth-hero__description {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.93);
    font-size: 16px;
    line-height: 1.72;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.ua-auth-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.ua-auth-benefit {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ua-auth-benefit__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(239, 23, 39, 0.9);
    color: #fff;
    box-shadow: 0 12px 28px rgba(239, 23, 39, 0.28);
    backdrop-filter: blur(8px);
}

.ua-auth-benefit__icon svg {
    width: 20px;
    height: 20px;
}

.ua-auth-benefit strong,
.ua-auth-benefit small {
    display: block;
}

.ua-auth-benefit strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
}

.ua-auth-benefit small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 10px;
    line-height: 1.35;
}

.ua-auth-hero__footer {
    margin-top: auto;
    padding-top: 44px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ua-auth-hero__footer i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ua-red-2);
    box-shadow: 0 0 0 4px rgba(239, 23, 39, 0.1);
}

/* =========================================================
   RIGHT AUTH PANEL
   ========================================================= */

.ua-auth-panel {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 74% 18%,
            rgba(239, 23, 39, 0.035),
            transparent 25%
        ),
        #fff;
}

.ua-auth-panel__accent {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transform: rotate(35deg);
    border-radius: 8px;
}

.ua-auth-panel__accent--one {
    width: 170px;
    height: 520px;
    top: -210px;
    right: -88px;
    background: linear-gradient(
        180deg,
        rgba(255, 46, 62, 0.15),
        rgba(255, 46, 62, 0.02)
    );
}

.ua-auth-panel__accent--two {
    width: 110px;
    height: 470px;
    left: -92px;
    bottom: -230px;
    background: linear-gradient(
        180deg,
        rgba(255, 46, 62, 0.13),
        rgba(255, 46, 62, 0.02)
    );
}

.ua-auth-panel__mobile-head {
    display: none;
}

.ua-auth-panel__slot {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
}

/* =========================================================
   LOGIN FRAME
   ========================================================= */

.ua-login {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 30px clamp(38px, 5.2vw, 88px) 28px;
}

.ua-login__topbar {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #526176;
    font-size: 14px;
}

.ua-login__topbar a {
    color: var(--ua-red);
    font-weight: 800;
}

.ua-login__topbar a:hover {
    color: var(--ua-red-dark);
    text-decoration: underline;
}

.ua-login-card {
    width: min(100%, 620px);
    margin: auto;
    padding: 24px 0 14px;
}

.ua-login-logo {
    width: fit-content;
    display: block;
    margin: 0 auto 28px;
}

.ua-login-logo img {
    display: block;
    width: clamp(260px, 27vw, 390px);
    max-height: 118px;
    object-fit: contain;
}

.ua-login-heading {
    margin-bottom: 30px;
    text-align: left;
}

.ua-login-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
    color: var(--ua-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-login-heading__eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--ua-red);
}

.ua-login-heading h1 {
    margin: 0;
    color: var(--ua-ink);
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.ua-login-heading p {
    max-width: 580px;
    margin: 11px 0 0;
    color: #68768c;
    font-size: 14px;
    line-height: 1.65;
}

.ua-session-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #bfe8cf;
    border-radius: 12px;
    background: #f0fbf4;
    color: #16733d;
    font-size: 13px;
    line-height: 1.5;
}

.ua-login-form {
    display: grid;
    gap: 19px;
}

.ua-field {
    min-width: 0;
}

.ua-field-label-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ua-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ua-ink);
    font-size: 13px;
    font-weight: 800;
}

.ua-field-label-row .ua-field-label {
    margin-bottom: 0;
}

.ua-field-link {
    color: var(--ua-red);
    font-size: 12px;
    font-weight: 800;
}

.ua-field-link:hover {
    color: var(--ua-red-dark);
    text-decoration: underline;
}

.ua-field-error {
    margin: 7px 0 0;
    color: #dc3545;
    font-size: 12px;
    font-weight: 650;
}

/* =========================================================
   PHONE NUMBER: FLAG | CODE | NUMBER
   ========================================================= */

.ua-phone {
    position: relative;
}

.ua-phone-control {
    min-height: 58px;
    display: grid;
    grid-template-columns: 82px 106px minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid var(--ua-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.ua-phone-control:focus-within,
.ua-phone.is-open .ua-phone-control {
    border-color: rgba(239, 23, 39, 0.62);
    box-shadow: 0 0 0 4px rgba(239, 23, 39, 0.08);
}

.ua-phone.is-invalid .ua-phone-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.07);
}

.ua-phone-segment {
    appearance: none;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-ink);
    cursor: pointer;
}

.ua-phone-flag,
.ua-phone-dial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #e4e8ee;
}

.ua-phone-flag {
    border-radius: 12px 0 0 12px;
}

.ua-phone-flag:hover,
.ua-phone-dial:hover {
    background: #fff7f8;
}

.ua-phone-flag__emoji {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.08));
}

.ua-phone-dial {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.ua-phone-chevron {
    width: 13px;
    height: 13px;
    color: #607089;
    transition: transform 0.18s ease;
}

.ua-phone.is-open .ua-phone-chevron {
    transform: rotate(180deg);
}

.ua-phone-input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    border-radius: 0 12px 12px 0;
    background: transparent;
    color: var(--ua-ink);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.ua-phone-input::placeholder {
    color: #9ba8ba;
    font-weight: 500;
}

.ua-phone-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    left: 0;
    width: min(430px, 100%);
    max-height: 330px;
    overflow: hidden;
    padding: 9px;
    border: 1px solid #e0e5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.ua-phone.is-open .ua-phone-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ua-phone-menu__search {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    padding: 0 11px;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    background: #f9fafc;
}

.ua-phone-menu__search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #7b8799;
}

.ua-phone-menu__search input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-ink);
    font-size: 13px;
}

.ua-phone-menu__list {
    max-height: 252px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cad1dc transparent;
}

.ua-phone-option {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--ua-ink);
    text-align: left;
    cursor: pointer;
    transition:
        background 0.14s ease,
        color 0.14s ease;
}

.ua-phone-option:hover,
.ua-phone-option.is-active {
    background: var(--ua-red-soft);
}

.ua-phone-option__flag {
    font-size: 21px;
}

.ua-phone-option__name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ua-phone-option__dial {
    color: #67758a;
    font-size: 12px;
    font-weight: 850;
}

/* =========================================================
   PASSWORD FIELD
   ========================================================= */

.ua-password-control {
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ua-line);
    border-radius: 12px;
    background: #fff;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.ua-password-control:focus-within {
    border-color: rgba(239, 23, 39, 0.62);
    box-shadow: 0 0 0 4px rgba(239, 23, 39, 0.08);
}

.ua-password-control.is-invalid {
    border-color: #dc3545;
}

.ua-password-icon {
    width: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: #8190a5;
}

.ua-password-icon svg,
.ua-password-toggle svg {
    width: 19px;
    height: 19px;
}

.ua-password-input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 7px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-ink);
    font-size: 15px;
    font-weight: 650;
}

.ua-password-input::placeholder {
    color: #9ba8ba;
    font-weight: 500;
}

.ua-password-toggle {
    width: 54px;
    height: 56px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #8190a5;
    cursor: pointer;
}

.ua-password-toggle:hover {
    color: var(--ua-red);
}

.ua-eye-closed {
    display: none;
}

.ua-password-toggle.is-visible .ua-eye-open {
    display: none;
}

.ua-password-toggle.is-visible .ua-eye-closed {
    display: block;
}

/* =========================================================
   OPTIONS + SUBMIT
   ========================================================= */

.ua-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ua-remember {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2f3b4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ua-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ua-remember__box {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: grid;
    place-items: center;
    border: 1.5px solid #aeb8c7;
    border-radius: 4px;
    background: #fff;
    color: #fff;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ua-remember__box svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.ua-remember input:checked + .ua-remember__box {
    border-color: var(--ua-red);
    background: var(--ua-red);
    box-shadow: 0 6px 16px rgba(239, 23, 39, 0.22);
}

.ua-remember input:checked + .ua-remember__box svg {
    opacity: 1;
    transform: scale(1);
}

.ua-secure-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8a97aa;
    font-size: 12px;
    font-weight: 600;
}

.ua-secure-inline svg {
    width: 17px;
    height: 17px;
    color: var(--ua-red);
}

.ua-login-submit {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f21d2d 0%, #df0818 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(239, 23, 39, 0.26);
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.ua-login-submit svg {
    width: 20px;
    height: 20px;
}

.ua-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(239, 23, 39, 0.34);
    filter: saturate(1.06);
}

.ua-login-submit:active {
    transform: translateY(0);
}

/* =========================================================
   SOCIAL + FOOTER NOTE
   ========================================================= */

.ua-or-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 26px 0 22px;
    color: #8d99ab;
    font-size: 12px;
    font-weight: 800;
}

.ua-or-divider::before,
.ua-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e1e5eb;
}

.ua-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.ua-social-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid #d9e0e9;
    border-radius: 11px;
    background: #fff;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ua-social-button:hover {
    transform: translateY(-1px);
    border-color: #c8d0dc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ua-social-button svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.ua-social-button--apple {
    border-color: #171b23;
    background: #171b23;
    color: #fff;
}

.ua-secure-note {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #8b98aa;
    font-size: 12px;
    font-weight: 600;
}

.ua-secure-note svg {
    width: 20px;
    height: 20px;
    color: #7f90a8;
}

.ua-login-tagline {
    margin-top: auto;
    padding: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #5f6c7f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.ua-login-tagline i {
    width: 18px;
    height: 9px;
    display: block;
    background: var(--ua-red);
    transform: skewX(-28deg);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
    .ua-auth-shell {
        grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    }

    .ua-auth-hero__content {
        width: min(100% - 60px, 700px);
    }

    .ua-auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 480px;
    }

    .ua-login {
        padding-inline: 50px;
    }
}

@media (max-width: 1024px) {
    .ua-auth-shell {
        display: block;
    }

    .ua-auth-hero {
        display: none;
    }

    .ua-auth-panel {
        min-height: 100svh;
    }

    .ua-auth-panel__mobile-head {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 26px 24px 0;
    }

    .ua-auth-mobile-logo img {
        width: 230px;
        max-height: 74px;
        object-fit: contain;
    }

    .ua-login {
        min-height: calc(100svh - 100px);
        padding: 18px 28px 26px;
    }

    .ua-login-logo {
        display: none;
    }

    .ua-login-card {
        padding-top: 16px;
    }

    .ua-login__topbar {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ua-auth-panel__mobile-head {
        padding-top: 18px;
    }

    .ua-auth-mobile-logo img {
        width: 190px;
        max-height: 62px;
    }

    .ua-login {
        padding: 12px 18px 22px;
    }

    .ua-login-card {
        width: 100%;
        padding-top: 12px;
    }

    .ua-login__topbar {
        min-height: 26px;
        font-size: 12px;
    }

    .ua-login-heading {
        margin-bottom: 24px;
        text-align: center;
    }

    .ua-login-heading__eyebrow {
        justify-content: center;
    }

    .ua-login-heading h1 {
        font-size: 34px;
    }

    .ua-login-heading p {
        margin-inline: auto;
        font-size: 13px;
    }

    .ua-phone-control {
        grid-template-columns: 70px 91px minmax(0, 1fr);
    }

    .ua-phone-dial {
        gap: 5px;
        font-size: 14px;
    }

    .ua-phone-input {
        padding-inline: 12px;
        font-size: 14px;
    }

    .ua-login-options {
        align-items: flex-start;
    }

    .ua-secure-inline {
        display: none;
    }

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

    .ua-login-tagline {
        gap: 9px;
        font-size: 9px;
        letter-spacing: 0.15em;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .ua-phone-control {
        grid-template-columns: 62px 82px minmax(0, 1fr);
    }

    .ua-phone-flag__emoji {
        font-size: 21px;
    }

    .ua-phone-chevron {
        width: 11px;
        height: 11px;
    }

    .ua-phone-input {
        padding-inline: 10px;
    }
}

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

/* =========================================================
   VELOCITY LOGIN THEME - UNIVAS AUTO
   Modern automotive palette: Racing red + teal + amber + navy
   Scoped to .ua-login--velocity.
   ========================================================= */

:root {
    --ua-v-red: #f2263d;
    --ua-v-red-deep: #cf1430;
    --ua-v-coral: #ff675a;
    --ua-v-amber: #ffb236;
    --ua-v-teal: #0bb7aa;
    --ua-v-sky: #2f7cf6;
    --ua-v-navy: #0b1728;
    --ua-v-slate: #516176;
    --ua-v-ivory: #fffdf9;
    --ua-v-mint: #ecfbf8;
    --ua-v-peach: #fff0eb;
}

/* Make the automotive image feel richer and more editorial. */
body:has(.ua-login--velocity) .ua-auth-hero__image {
    filter: saturate(1.18) brightness(1.08) contrast(1.03);
    transform: scale(1.018);
}

body:has(.ua-login--velocity) .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(6, 16, 31, 0.72) 0%,
            rgba(7, 19, 35, 0.48) 38%,
            rgba(7, 23, 36, 0.17) 74%,
            rgba(7, 23, 36, 0.07) 100%
        ),
        linear-gradient(
            180deg,
            rgba(9, 15, 28, 0.2) 0%,
            rgba(9, 15, 28, 0.02) 40%,
            rgba(6, 13, 25, 0.72) 100%
        );
}

body:has(.ua-login--velocity) .ua-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 13% 18%,
            rgba(47, 124, 246, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 82% 16%,
            rgba(255, 178, 54, 0.14),
            transparent 24%
        ),
        radial-gradient(
            circle at 19% 79%,
            rgba(11, 183, 170, 0.18),
            transparent 30%
        );
    mix-blend-mode: screen;
}

body:has(.ua-login--velocity) .ua-auth-hero__glow {
    left: -24%;
    bottom: -30%;
    width: 88%;
    background: radial-gradient(
        circle,
        rgba(242, 38, 61, 0.5) 0%,
        rgba(255, 103, 90, 0.26) 27%,
        rgba(11, 183, 170, 0.1) 47%,
        rgba(242, 38, 61, 0) 70%
    );
    filter: blur(11px);
}

body:has(.ua-login--velocity) .ua-auth-brand img {
    filter: drop-shadow(0 9px 24px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

body:has(.ua-login--velocity) .ua-auth-kicker {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(
        110deg,
        rgba(12, 27, 48, 0.56),
        rgba(11, 183, 170, 0.14)
    );
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

body:has(.ua-login--velocity) .ua-auth-kicker__dot {
    background: var(--ua-v-amber);
    box-shadow:
        0 0 0 5px rgba(255, 178, 54, 0.16),
        0 0 22px rgba(255, 178, 54, 0.75);
}

body:has(.ua-login--velocity) .ua-auth-hero__title span {
    color: #ff4557;
    text-shadow: 0 10px 32px rgba(242, 38, 61, 0.26);
}

body:has(.ua-login--velocity) .ua-auth-benefit__icon {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(145deg, var(--ua-v-red), var(--ua-v-coral));
    box-shadow:
        0 14px 30px rgba(242, 38, 61, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body:has(.ua-login--velocity)
    .ua-auth-benefit:nth-child(2)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #0bb7aa, #21d1c1);
    box-shadow:
        0 14px 30px rgba(11, 183, 170, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body:has(.ua-login--velocity)
    .ua-auth-benefit:nth-child(3)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #ff9e2c, #ffc14d);
    box-shadow:
        0 14px 30px rgba(255, 178, 54, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body:has(.ua-login--velocity)
    .ua-auth-benefit:nth-child(4)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #357df3, #5aa4ff);
    box-shadow:
        0 14px 30px rgba(47, 124, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Brighter, more colorful right side. */
body:has(.ua-login--velocity) .ua-auth-panel {
    background:
        radial-gradient(
            circle at 86% 9%,
            rgba(242, 38, 61, 0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 14% 88%,
            rgba(11, 183, 170, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 76%,
            rgba(255, 178, 54, 0.08),
            transparent 24%
        ),
        linear-gradient(145deg, #fffdf9 0%, #fffaf8 42%, #f7fffd 100%);
}

body:has(.ua-login--velocity) .ua-auth-panel__accent--one {
    opacity: 0.95;
    background: linear-gradient(
        180deg,
        rgba(242, 38, 61, 0.24),
        rgba(255, 103, 90, 0.02)
    );
}

body:has(.ua-login--velocity) .ua-auth-panel__accent--two {
    opacity: 0.9;
    background: linear-gradient(
        180deg,
        rgba(11, 183, 170, 0.19),
        rgba(47, 124, 246, 0.025)
    );
}

.ua-login--velocity {
    position: relative;
}

.ua-login--velocity::before,
.ua-login--velocity::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.ua-login--velocity::before {
    width: 210px;
    height: 210px;
    right: clamp(24px, 6vw, 96px);
    top: 10%;
    border: 24px solid rgba(242, 38, 61, 0.035);
}

.ua-login--velocity::after {
    width: 92px;
    height: 92px;
    left: clamp(24px, 4vw, 70px);
    bottom: 11%;
    border: 15px solid rgba(11, 183, 170, 0.045);
}

.ua-login--velocity .ua-login__topbar {
    color: #5c687b;
}

.ua-login--velocity .ua-login__topbar a {
    color: var(--ua-v-red);
    font-weight: 900;
}

.ua-login--velocity .ua-login__topbar a:hover {
    color: var(--ua-v-red-deep);
}

.ua-login--velocity .ua-login-card {
    position: relative;
    width: min(100%, 660px);
    padding: 30px clamp(25px, 3.1vw, 42px) 26px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        0 34px 88px rgba(15, 23, 42, 0.12),
        0 12px 34px rgba(242, 38, 61, 0.065),
        0 4px 20px rgba(11, 183, 170, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
    overflow: visible;
}

.ua-login--velocity .ua-login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(242, 38, 61, 0.26) 0%,
        rgba(255, 178, 54, 0.13) 33%,
        rgba(11, 183, 170, 0.16) 68%,
        rgba(47, 124, 246, 0.1) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ua-login--velocity .ua-login-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 170px;
    height: 170px;
    top: 42px;
    right: -48px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(11, 183, 170, 0.13),
        rgba(11, 183, 170, 0) 70%
    );
    filter: blur(8px);
    pointer-events: none;
}

.ua-login--velocity .ua-login-logo {
    margin-bottom: 22px;
}

.ua-login--velocity .ua-login-logo img {
    width: clamp(250px, 24vw, 348px);
    filter: drop-shadow(0 8px 22px rgba(15, 23, 42, 0.08));
}

.ua-login--velocity .ua-login-heading {
    margin-bottom: 24px;
}

.ua-login--velocity .ua-login-heading__eyebrow {
    color: var(--ua-v-red);
}

.ua-login--velocity .ua-login-heading__eyebrow::before {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--ua-v-red), var(--ua-v-amber));
}

.ua-login--velocity .ua-login-heading h1 {
    color: var(--ua-v-navy);
    font-size: clamp(38px, 3vw, 54px);
    letter-spacing: -0.045em;
}

.ua-login--velocity .ua-login-heading p {
    color: #647389;
}

.ua-login--velocity .ua-login-heading__chips {
    gap: 9px;
    margin-top: 17px;
}

.ua-login--velocity .ua-login-heading__chips span {
    min-height: 31px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    font-size: 10.5px;
    font-weight: 850;
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(1) {
    border-color: rgba(242, 38, 61, 0.22);
    color: #a72032;
    background: linear-gradient(180deg, #fff, #fff5f6);
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(1) i {
    background: var(--ua-v-red);
    box-shadow: 0 0 0 4px rgba(242, 38, 61, 0.09);
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(2) {
    border-color: rgba(11, 183, 170, 0.24);
    color: #087d76;
    background: linear-gradient(180deg, #fff, #f0fffc);
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(2) i {
    background: var(--ua-v-teal);
    box-shadow: 0 0 0 4px rgba(11, 183, 170, 0.09);
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(3) {
    border-color: rgba(255, 178, 54, 0.27);
    color: #a26505;
    background: linear-gradient(180deg, #fff, #fff9e9);
}

.ua-login--velocity .ua-login-heading__chips span:nth-child(3) i {
    background: var(--ua-v-amber);
    box-shadow: 0 0 0 4px rgba(255, 178, 54, 0.1);
}

.ua-login--velocity .ua-field-label,
.ua-login--velocity .ua-field-label-row .ua-field-label {
    color: #152235;
}

.ua-login--velocity .ua-field-link {
    color: var(--ua-v-red);
    font-weight: 800;
}

.ua-login--velocity .ua-field-link:hover {
    color: var(--ua-v-red-deep);
}

.ua-login--velocity .ua-phone-control,
.ua-login--velocity .ua-password-control {
    border-color: #d9e2eb;
    background: linear-gradient(180deg, #fff, #fdfefe);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 5px 14px rgba(15, 23, 42, 0.025);
}

.ua-login--velocity .ua-phone-control:hover,
.ua-login--velocity .ua-password-control:hover {
    border-color: #bac8d7;
}

.ua-login--velocity .ua-phone:focus-within .ua-phone-control,
.ua-login--velocity .ua-password-control:focus-within {
    border-color: var(--ua-v-teal);
    box-shadow:
        0 0 0 4px rgba(11, 183, 170, 0.11),
        0 12px 26px rgba(11, 183, 170, 0.07);
}

.ua-login--velocity .ua-phone-flag {
    background: linear-gradient(180deg, #fff8f8, #fff);
}

.ua-login--velocity .ua-phone-dial {
    background: linear-gradient(180deg, #f4fffd, #fbfffe);
    color: var(--ua-v-navy);
}

.ua-login--velocity .ua-phone-segment:hover {
    background: var(--ua-v-peach);
}

.ua-login--velocity .ua-phone-menu {
    border-color: #dce4ec;
    border-radius: 20px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18),
        0 8px 24px rgba(11, 183, 170, 0.08);
}

.ua-login--velocity .ua-phone-menu__search {
    background: linear-gradient(180deg, #fbfffe, #fff);
}

.ua-login--velocity .ua-phone-menu__search input:focus {
    border-color: var(--ua-v-teal);
    box-shadow: 0 0 0 3px rgba(11, 183, 170, 0.1);
}

.ua-login--velocity .ua-phone-option:hover {
    background: #f0fffc;
}

.ua-login--velocity .ua-phone-option.is-active {
    background: linear-gradient(
        90deg,
        rgba(11, 183, 170, 0.11),
        rgba(242, 38, 61, 0.055)
    );
    color: var(--ua-v-navy);
}

.ua-login--velocity .ua-phone-option.is-active .ua-phone-option__dial {
    color: var(--ua-v-teal);
}

.ua-login--velocity .ua-password-icon,
.ua-login--velocity .ua-password-toggle {
    color: #8d9caf;
}

.ua-login--velocity .ua-password-toggle:hover {
    color: var(--ua-v-teal);
    background: var(--ua-v-mint);
}

.ua-login--velocity .ua-remember input {
    accent-color: var(--ua-v-red);
}

.ua-login--velocity .ua-secure-inline {
    color: #14887f;
    background: var(--ua-v-mint);
    border: 1px solid rgba(11, 183, 170, 0.15);
    border-radius: 999px;
    padding: 6px 10px;
}

.ua-login--velocity .ua-secure-inline svg {
    color: var(--ua-v-teal);
}

.ua-login--velocity .ua-login-submit {
    min-height: 58px;
    border: 0;
    background: linear-gradient(
        115deg,
        var(--ua-v-red-deep) 0%,
        var(--ua-v-red) 38%,
        var(--ua-v-coral) 73%,
        #ff7855 100%
    );
    box-shadow:
        0 17px 32px rgba(242, 38, 61, 0.22),
        0 6px 16px rgba(255, 103, 90, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ua-login--velocity .ua-login-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    transition: left 0.55s ease;
}

.ua-login--velocity .ua-login-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 40px rgba(242, 38, 61, 0.27),
        0 8px 20px rgba(255, 103, 90, 0.13);
}

.ua-login--velocity .ua-login-submit:hover::before {
    left: 145%;
}

.ua-login--velocity .ua-or-divider::before,
.ua-login--velocity .ua-or-divider::after {
    background: linear-gradient(90deg, transparent, #dbe3ec);
}

.ua-login--velocity .ua-or-divider::after {
    background: linear-gradient(90deg, #dbe3ec, transparent);
}

.ua-login--velocity .ua-social-button {
    min-height: 54px;
    border-color: #dce4ec;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.035);
}

.ua-login--velocity .ua-social-button:hover {
    transform: translateY(-2px);
    border-color: #cbd6e1;
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.08);
}

.ua-login--velocity .ua-social-button--google:hover {
    background: linear-gradient(180deg, #fff, #f6faff);
}

.ua-login--velocity .ua-social-button--apple {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-color: #111827;
    color: #fff;
}

.ua-login--velocity .ua-social-button--apple:hover {
    background: linear-gradient(135deg, #0b1728, #24354d);
    border-color: #0b1728;
}

.ua-login--velocity .ua-secure-note {
    width: fit-content;
    margin: 20px auto 0;
    padding: 8px 13px;
    border: 1px solid rgba(11, 183, 170, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, #f7fffd, #effcf9);
    color: #6c7c8f;
}

.ua-login--velocity .ua-secure-note svg {
    color: var(--ua-v-teal);
}

.ua-login--velocity .ua-login-tagline i:first-child {
    background: var(--ua-v-red);
}

.ua-login--velocity .ua-login-tagline i:last-child {
    background: var(--ua-v-teal);
}

.ua-login--velocity .ua-login-tagline span {
    color: #5d6b7d;
}

.ua-login--velocity .ua-session-status {
    border-color: rgba(11, 183, 170, 0.18);
    background: linear-gradient(180deg, #f2fffc, #ecfbf8);
    color: #0d766f;
}

.ua-login--velocity .is-invalid,
.ua-login--velocity .ua-phone.is-invalid .ua-phone-control,
.ua-login--velocity .ua-password-control.is-invalid {
    border-color: #e84a5f !important;
    box-shadow: 0 0 0 4px rgba(232, 74, 95, 0.09) !important;
}

@media (max-width: 1024px) {
    body:has(.ua-login--velocity) .ua-auth-panel {
        background:
            radial-gradient(
                circle at 85% 9%,
                rgba(242, 38, 61, 0.11),
                transparent 26%
            ),
            radial-gradient(
                circle at 10% 88%,
                rgba(11, 183, 170, 0.1),
                transparent 26%
            ),
            linear-gradient(150deg, #fffdf9, #fff9f7 50%, #f7fffd);
    }

    .ua-login--velocity .ua-login-card {
        width: min(100%, 680px);
    }
}

@media (max-width: 640px) {
    .ua-login--velocity::before,
    .ua-login--velocity::after {
        display: none;
    }

    .ua-login--velocity .ua-login-card {
        padding: 22px 18px 20px;
        border-radius: 24px;
    }

    .ua-login--velocity .ua-login-heading__chips {
        justify-content: center;
    }

    .ua-login--velocity .ua-login-heading h1 {
        font-size: 34px;
    }

    .ua-login--velocity .ua-secure-note {
        padding-inline: 11px;
        font-size: 11px;
    }
}

/* =========================================================
   VELOCITY APEX - FINAL LOGIN POLISH
   Scoped to .ua-login--apex so the rest of auth pages keep
   their existing styling.
   ========================================================= */

:root {
    --ua-a-red: #ef233c;
    --ua-a-red-deep: #c91831;
    --ua-a-coral: #ff6b5f;
    --ua-a-teal: #12b8a6;
    --ua-a-teal-deep: #087f76;
    --ua-a-amber: #f6b73c;
    --ua-a-blue: #3b82f6;
    --ua-a-navy: #0b1728;
    --ua-a-ink: #142033;
    --ua-a-muted: #68778c;
    --ua-a-ivory: #fffdf8;
}

/* ---------- Left side: richer image, cleaner glass content ---------- */
body:has(.ua-login--apex) .ua-auth-hero__image {
    filter: saturate(1.16) brightness(1.1) contrast(1.04);
    transform: scale(1.015);
}

body:has(.ua-login--apex) .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 24, 0.76) 0%,
            rgba(6, 17, 31, 0.54) 35%,
            rgba(8, 24, 38, 0.23) 69%,
            rgba(10, 27, 39, 0.1) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 10, 21, 0.28) 0%,
            rgba(3, 10, 21, 0.03) 39%,
            rgba(4, 11, 23, 0.78) 100%
        );
}

body:has(.ua-login--apex) .ua-auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            transparent 0 58%,
            rgba(255, 255, 255, 0.045) 58.2% 58.5%,
            transparent 58.7%
        ),
        radial-gradient(
            circle at 18% 16%,
            rgba(59, 130, 246, 0.17),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 24%,
            rgba(246, 183, 60, 0.15),
            transparent 21%
        ),
        radial-gradient(
            circle at 20% 82%,
            rgba(18, 184, 166, 0.15),
            transparent 29%
        );
}

body:has(.ua-login--apex) .ua-auth-hero__content {
    width: min(100% - 86px, 780px);
    padding-top: 48px;
    padding-bottom: 38px;
}

body:has(.ua-login--apex) .ua-auth-brand img {
    width: clamp(240px, 22vw, 338px);
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.32))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.07));
}

body:has(.ua-login--apex) .ua-auth-hero__copy {
    margin-top: clamp(54px, 8vh, 98px);
}

body:has(.ua-login--apex) .ua-auth-kicker {
    padding: 10px 15px;
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(
        115deg,
        rgba(8, 19, 35, 0.62),
        rgba(18, 184, 166, 0.15)
    );
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:has(.ua-login--apex) .ua-auth-kicker__dot {
    background: var(--ua-a-amber);
    box-shadow:
        0 0 0 5px rgba(246, 183, 60, 0.14),
        0 0 24px rgba(246, 183, 60, 0.6);
}

body:has(.ua-login--apex) .ua-auth-hero__title {
    margin-top: 24px;
    margin-bottom: 15px;
    font-size: clamp(50px, 4.25vw, 78px);
    letter-spacing: -0.058em;
}

body:has(.ua-login--apex) .ua-auth-hero__title span {
    color: #ff3f51;
    text-shadow: 0 12px 34px rgba(239, 35, 60, 0.3);
}

body:has(.ua-login--apex) .ua-auth-hero__description {
    max-width: 630px;
    font-size: 15.5px;
    line-height: 1.7;
}

body:has(.ua-login--apex) .ua-auth-benefits {
    gap: 11px;
    margin-top: 28px;
}

body:has(.ua-login--apex) .ua-auth-benefit {
    position: relative;
    min-height: 68px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.035)
    );
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body:has(.ua-login--apex) .ua-auth-benefit__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

body:has(.ua-login--apex) .ua-auth-benefit strong {
    font-size: 11.5px;
}

body:has(.ua-login--apex) .ua-auth-benefit small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
}

body:has(.ua-login--apex) .ua-auth-hero__footer {
    padding-top: 26px;
}

/* ---------- Right panel: bright automotive luxury ---------- */
body:has(.ua-login--apex) .ua-auth-panel {
    isolation: isolate;
    overflow-x: clip;
    overflow-y: visible;
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(239, 35, 60, 0.14),
            transparent 24%
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(18, 184, 166, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 72% 76%,
            rgba(246, 183, 60, 0.08),
            transparent 23%
        ),
        linear-gradient(145deg, #fffefa 0%, #fff9f7 43%, #f5fffd 100%);
}

body:has(.ua-login--apex) .ua-auth-panel::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--ua-a-red),
        var(--ua-a-coral) 34%,
        var(--ua-a-amber) 58%,
        var(--ua-a-teal)
    );
    opacity: 0.82;
}

body:has(.ua-login--apex) .ua-auth-panel::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 360px;
    height: 360px;
    right: -170px;
    top: 30%;
    border-radius: 50%;
    border: 42px solid rgba(18, 184, 166, 0.035);
    pointer-events: none;
}

.ua-login--apex {
    padding-top: 24px;
    padding-bottom: 22px;
}

.ua-login--apex .ua-login__topbar {
    min-height: 38px;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.ua-login--apex .ua-login__status-pill,
.ua-login--apex .ua-login__register-prompt {
    display: inline-flex;
    align-items: center;
}

.ua-login--apex .ua-login__status-pill {
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(18, 184, 166, 0.16);
    border-radius: 999px;
    background: rgba(239, 255, 251, 0.84);
    color: #197c74;
    box-shadow: 0 7px 18px rgba(18, 184, 166, 0.055);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.ua-login--apex .ua-login__status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ua-a-teal);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.1),
        0 0 14px rgba(18, 184, 166, 0.32);
}

.ua-login--apex .ua-login__register-prompt {
    gap: 8px;
    color: #59697d;
    font-size: 13px;
}

.ua-login--apex .ua-login__register-prompt a {
    color: var(--ua-a-red);
    font-weight: 900;
}

.ua-login--apex .ua-login__register-prompt a:hover {
    color: var(--ua-a-red-deep);
    text-decoration: none;
}

.ua-login--apex .ua-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 676px);
    margin-top: clamp(24px, 5.5vh, 58px);
    margin-bottom: clamp(18px, 3vh, 34px);
    padding: 31px clamp(26px, 3.2vw, 44px) 25px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.93),
        rgba(255, 255, 255, 0.82)
    );
    box-shadow:
        0 38px 90px rgba(11, 23, 40, 0.13),
        0 12px 34px rgba(239, 35, 60, 0.06),
        0 8px 28px rgba(18, 184, 166, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(26px) saturate(1.08);
    -webkit-backdrop-filter: blur(26px) saturate(1.08);
}

.ua-login--apex .ua-login-card::before {
    background: linear-gradient(
        115deg,
        rgba(239, 35, 60, 0.34) 0%,
        rgba(255, 107, 95, 0.12) 27%,
        rgba(246, 183, 60, 0.15) 49%,
        rgba(18, 184, 166, 0.2) 73%,
        rgba(59, 130, 246, 0.12) 100%
    );
}

.ua-login--apex .ua-login-card::after {
    width: 190px;
    height: 190px;
    top: 24px;
    right: -62px;
    background: radial-gradient(
        circle,
        rgba(18, 184, 166, 0.16),
        rgba(18, 184, 166, 0) 70%
    );
}

.ua-login-card__aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ua-login-card__aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
}

.ua-login-card__aurora-red {
    width: 180px;
    height: 180px;
    top: -116px;
    left: -86px;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.12),
        transparent 68%
    );
}

.ua-login-card__aurora-teal {
    width: 160px;
    height: 160px;
    right: -92px;
    bottom: 68px;
    background: radial-gradient(
        circle,
        rgba(18, 184, 166, 0.12),
        transparent 68%
    );
}

.ua-login-card__aurora-amber {
    width: 128px;
    height: 128px;
    left: 46%;
    bottom: -86px;
    background: radial-gradient(
        circle,
        rgba(246, 183, 60, 0.09),
        transparent 68%
    );
}

.ua-login--apex .ua-login-logo {
    margin-bottom: 19px;
}

.ua-login--apex .ua-login-logo img {
    width: clamp(248px, 23vw, 334px);
    filter: drop-shadow(0 9px 22px rgba(11, 23, 40, 0.08));
}

.ua-login--apex .ua-login-heading {
    margin-bottom: 23px;
}

.ua-login--apex .ua-login-heading__eyebrow {
    margin-bottom: 9px;
    color: var(--ua-a-red);
}

.ua-login--apex .ua-login-heading__eyebrow::before {
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, var(--ua-a-red), var(--ua-a-amber));
    box-shadow: 0 3px 10px rgba(239, 35, 60, 0.15);
}

.ua-login--apex .ua-login-heading h1 {
    color: var(--ua-a-navy);
    font-size: clamp(39px, 3vw, 55px);
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.ua-login--apex .ua-login-heading p {
    max-width: 590px;
    margin-top: 10px;
    color: var(--ua-a-muted);
    font-size: 13.5px;
}

.ua-login--apex .ua-login-heading__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.ua-login--apex .ua-login-heading__chips span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.04);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.ua-login--apex .ua-login-heading__chips svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.ua-login--apex .ua-login-heading__chips span:nth-child(1) {
    color: #b31e35;
    border-color: rgba(239, 35, 60, 0.18);
    background: linear-gradient(180deg, #fff, #fff5f6);
}

.ua-login--apex .ua-login-heading__chips span:nth-child(2) {
    color: var(--ua-a-teal-deep);
    border-color: rgba(18, 184, 166, 0.2);
    background: linear-gradient(180deg, #fff, #effcf9);
}

.ua-login--apex .ua-login-heading__chips span:nth-child(3) {
    color: #9b660b;
    border-color: rgba(246, 183, 60, 0.24);
    background: linear-gradient(180deg, #fff, #fff9eb);
}

.ua-login--apex .ua-login-form {
    gap: 17px;
}

.ua-login--apex .ua-field-label,
.ua-login--apex .ua-field-label-row .ua-field-label {
    color: #17253a;
    font-size: 12.5px;
}

.ua-login--apex .ua-field-link {
    color: var(--ua-a-red);
}

.ua-login--apex .ua-field-link:hover {
    color: var(--ua-a-red-deep);
    text-decoration: none;
}

.ua-login--apex .ua-phone-control,
.ua-login--apex .ua-password-control {
    min-height: 59px;
    border-color: #d8e1eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.025),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.ua-login--apex .ua-phone-control:hover,
.ua-login--apex .ua-password-control:hover {
    border-color: #bdcbd9;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.ua-login--apex .ua-phone:focus-within .ua-phone-control,
.ua-login--apex .ua-password-control:focus-within {
    border-color: var(--ua-a-teal);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.1),
        0 12px 25px rgba(18, 184, 166, 0.065);
}

.ua-login--apex .ua-phone-control {
    grid-template-columns: 78px 104px minmax(0, 1fr);
}

.ua-login--apex .ua-phone-flag {
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #fff8f8, #fffdfd);
}

.ua-login--apex .ua-phone-dial {
    background: linear-gradient(180deg, #f2fffc, #fbfffe);
}

.ua-login--apex .ua-phone-segment:hover {
    background: #fff3f4;
}

.ua-login--apex .ua-phone-input,
.ua-login--apex .ua-password-input {
    color: var(--ua-a-ink);
    font-weight: 700;
}

.ua-login--apex .ua-phone-menu {
    border: 1px solid rgba(18, 184, 166, 0.16);
    border-radius: 20px;
    box-shadow:
        0 26px 64px rgba(11, 23, 40, 0.18),
        0 9px 28px rgba(18, 184, 166, 0.07);
}

.ua-login--apex .ua-password-toggle {
    border-radius: 0 14px 14px 0;
}

.ua-login--apex .ua-password-toggle:hover {
    color: var(--ua-a-teal-deep);
    background: #effcf9;
}

.ua-login--apex .ua-login-options {
    margin-top: 1px;
}

.ua-login--apex .ua-remember__box {
    border-color: #9faebe;
    border-radius: 5px;
}

.ua-login--apex .ua-remember input:checked + .ua-remember__box {
    border-color: var(--ua-a-red);
    background: linear-gradient(145deg, var(--ua-a-red), var(--ua-a-coral));
    box-shadow: 0 7px 18px rgba(239, 35, 60, 0.22);
}

.ua-login--apex .ua-secure-inline {
    color: var(--ua-a-teal-deep);
    background: linear-gradient(180deg, #f2fffc, #eafbf7);
    border-color: rgba(18, 184, 166, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ua-login--apex .ua-login-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 60px;
    border-radius: 14px;
    background: linear-gradient(
        110deg,
        var(--ua-a-red-deep) 0%,
        var(--ua-a-red) 34%,
        var(--ua-a-coral) 72%,
        #ff7b52 100%
    );
    box-shadow:
        0 18px 36px rgba(239, 35, 60, 0.24),
        0 6px 18px rgba(255, 107, 95, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-size: 15.5px;
    letter-spacing: 0.005em;
}

.ua-login--apex .ua-login-submit::after {
    content: "";
    position: absolute;
    inset: auto 7% 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    opacity: 0.7;
}

.ua-login--apex .ua-login-submit svg {
    transition: transform 0.18s ease;
}

.ua-login--apex .ua-login-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 44px rgba(239, 35, 60, 0.29),
        0 9px 23px rgba(255, 107, 95, 0.15);
}

.ua-login--apex .ua-login-submit:hover svg {
    transform: translateX(3px);
}

.ua-login--apex .ua-or-divider {
    gap: 14px;
    margin: 21px 0 18px;
    color: #8a97a8;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.ua-login--apex .ua-social-grid {
    gap: 11px;
}

.ua-login--apex .ua-social-button {
    min-height: 52px;
    border-radius: 13px;
    border-color: #dce4ec;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.03);
}

.ua-login--apex .ua-social-button:hover {
    transform: translateY(-2px);
    border-color: #cbd5df;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.075);
}

.ua-login--apex .ua-social-button--google:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, #fff, #f5f9ff);
}

.ua-login--apex .ua-social-button--apple {
    background: linear-gradient(135deg, #0d1726, #25344a);
    border-color: #0d1726;
}

.ua-login--apex .ua-social-button--apple:hover {
    background: linear-gradient(135deg, #08111d, #293d58);
}

.ua-login--apex .ua-secure-note {
    margin-top: 18px;
    padding: 7px 12px;
    border-color: rgba(18, 184, 166, 0.15);
    background: linear-gradient(180deg, #f7fffd, #effcf9);
    color: #66768a;
    font-size: 11px;
}

.ua-login--apex .ua-secure-note svg {
    color: var(--ua-a-teal);
}

.ua-login--apex .ua-login-tagline {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 6px;
    color: #627186;
}

.ua-login--apex .ua-login-tagline i:first-child {
    background: linear-gradient(90deg, var(--ua-a-red), var(--ua-a-coral));
}

.ua-login--apex .ua-login-tagline i:last-child {
    background: linear-gradient(90deg, var(--ua-a-teal), var(--ua-a-blue));
}

/* ---------- Accessible interaction polish ---------- */
.ua-login--apex a:focus-visible,
.ua-login--apex button:focus-visible,
.ua-login--apex input:focus-visible {
    outline: 3px solid rgba(18, 184, 166, 0.2);
    outline-offset: 3px;
}

.ua-login--apex .ua-login-submit:focus-visible {
    outline-color: rgba(239, 35, 60, 0.24);
}

/* ---------- Subtle motion ---------- */
@keyframes ua-apex-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes ua-apex-pulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ua-login--apex .ua-login-card__aurora-teal {
        animation: ua-apex-float 7s ease-in-out infinite;
    }

    .ua-login--apex .ua-login__status-pill i {
        animation: ua-apex-pulse 2.8s ease-in-out infinite;
    }
}

/* ---------- Laptop / tablet fit ---------- */
@media (max-width: 1360px) {
    .ua-login--apex {
        padding-inline: 42px;
    }

    .ua-login--apex .ua-login-card {
        margin-top: 28px;
        margin-bottom: 22px;
        padding: 27px 30px 22px;
    }

    .ua-login--apex .ua-login-heading h1 {
        font-size: clamp(37px, 3vw, 49px);
    }
}

@media (max-width: 1120px) {
    body:has(.ua-login--apex) .ua-auth-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    }

    body:has(.ua-login--apex) .ua-auth-hero__content {
        width: min(100% - 54px, 680px);
    }

    body:has(.ua-login--apex) .ua-auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 480px;
    }
}

@media (max-width: 1024px) {
    body:has(.ua-login--apex) .ua-auth-panel::before {
        display: none;
    }

    .ua-login--apex {
        padding-inline: 28px;
    }

    .ua-login--apex .ua-login__topbar {
        width: min(100%, 680px);
        margin-inline: auto;
    }

    .ua-login--apex .ua-login-card {
        width: min(100%, 680px);
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .ua-login--apex {
        padding: 12px 16px 20px;
    }

    .ua-login--apex .ua-login__topbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .ua-login--apex .ua-login__status-pill {
        display: none;
    }

    .ua-login--apex .ua-login__register-prompt {
        font-size: 12px;
    }

    .ua-login--apex .ua-login-card {
        margin-top: 15px;
        padding: 22px 17px 19px;
        border-radius: 24px;
    }

    .ua-login--apex .ua-login-heading {
        text-align: center;
    }

    .ua-login--apex .ua-login-heading__eyebrow {
        justify-content: center;
    }

    .ua-login--apex .ua-login-heading__chips {
        justify-content: center;
    }

    .ua-login--apex .ua-login-heading__chips span:nth-child(3) {
        display: none;
    }

    .ua-login--apex .ua-phone-control {
        grid-template-columns: 68px 88px minmax(0, 1fr);
    }

    .ua-login--apex .ua-phone-dial {
        font-size: 13px;
    }

    .ua-login--apex .ua-phone-input {
        padding-inline: 11px;
    }

    .ua-login--apex .ua-social-grid {
        grid-template-columns: 1fr;
    }

    .ua-login--apex .ua-secure-note {
        text-align: center;
    }
}

/* =========================================================
   REGISTER PAGE - VELOCITY APEX
   Full registration styling aligned with the perfected login.
   Scoped to .ua-register--velocity / .ua-register--apex.
   ========================================================= */

/* ---------- Register base ---------- */
.ua-register {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(34px, 4.6vw, 76px) 24px;
}

.ua-register__topbar {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #59677b;
    font-size: 13px;
}

.ua-register__topbar a {
    color: var(--ua-red);
    font-weight: 850;
}

.ua-register__topbar a:hover {
    color: var(--ua-red-dark);
    text-decoration: underline;
}

.ua-register-card {
    width: min(100%, 720px);
    margin: auto;
    padding: 16px 0 12px;
}

.ua-register-logo {
    width: fit-content;
    display: block;
    margin: 0 auto 18px;
}

.ua-register-logo img {
    display: block;
    width: clamp(230px, 22vw, 330px);
    max-height: 94px;
    object-fit: contain;
}

.ua-register-heading {
    margin-bottom: 24px;
    text-align: left;
}

.ua-register-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--ua-red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-register-heading__eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: var(--ua-red);
}

.ua-register-heading h1 {
    margin: 0;
    color: var(--ua-ink);
    font-size: clamp(34px, 2.55vw, 46px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.048em;
}

.ua-register-heading p {
    max-width: 650px;
    margin: 9px 0 0;
    color: #6b788b;
    font-size: 13px;
    line-height: 1.62;
}

.ua-register-form {
    display: grid;
    gap: 17px;
}

.ua-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}

.ua-register-field {
    min-width: 0;
}

.ua-register-field--full {
    grid-column: 1 / -1;
}

.ua-register-input {
    min-height: 56px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ua-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.ua-register-input:focus-within {
    border-color: rgba(239, 23, 39, 0.62);
    box-shadow: 0 0 0 4px rgba(239, 23, 39, 0.08);
}

.ua-register-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.07);
}

.ua-register-input__icon {
    width: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    color: #8190a5;
}

.ua-register-input__icon svg {
    width: 19px;
    height: 19px;
}

.ua-register-input input {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 16px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-ink);
    font-size: 14px;
    font-weight: 650;
}

.ua-register-input input::placeholder {
    color: #9ba8ba;
    font-weight: 500;
}

.ua-register-hint {
    margin: 7px 0 0;
    color: #8a96a8;
    font-size: 11px;
    line-height: 1.45;
}

.ua-register .ua-phone-control,
.ua-register .ua-password-control {
    min-height: 56px;
}

.ua-register .ua-phone-input,
.ua-register .ua-password-input,
.ua-register .ua-password-toggle {
    height: 54px;
}

.ua-register .ua-password-icon {
    width: 52px;
    flex-basis: 52px;
}

.ua-password-strength {
    padding: 12px 14px;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.ua-password-strength__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #5e6a7c;
    font-size: 11px;
    font-weight: 700;
}

.ua-password-strength__top strong {
    color: #8995a7;
    font-size: 11px;
    font-weight: 850;
}

.ua-password-strength__bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.ua-password-strength__bars i {
    height: 4px;
    border-radius: 999px;
    background: #e3e7ed;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ua-password-strength[data-score="1"]
    .ua-password-strength__bars
    i:nth-child(-n + 1) {
    background: var(--ua-a-red, #ef233c);
}

.ua-password-strength[data-score="2"]
    .ua-password-strength__bars
    i:nth-child(-n + 2) {
    background: var(--ua-a-coral, #ff6b5f);
}

.ua-password-strength[data-score="3"]
    .ua-password-strength__bars
    i:nth-child(-n + 3) {
    background: var(--ua-a-amber, #f6b73c);
}

.ua-password-strength[data-score="4"]
    .ua-password-strength__bars
    i:nth-child(-n + 4) {
    background: var(--ua-a-teal, #12b8a6);
    box-shadow: 0 3px 9px rgba(18, 184, 166, 0.16);
}

.ua-password-strength[data-score="1"] .ua-password-strength__top strong {
    color: #d9122c;
}
.ua-password-strength[data-score="2"] .ua-password-strength__top strong {
    color: #d95b4e;
}
.ua-password-strength[data-score="3"] .ua-password-strength__top strong {
    color: #a87813;
}
.ua-password-strength[data-score="4"] .ua-password-strength__top strong {
    color: #0b8d81;
}

.ua-password-strength p {
    margin: 7px 0 0;
    color: #8995a7;
    font-size: 10px;
    line-height: 1.45;
}

.ua-register-terms {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #536074;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.ua-register-terms input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ua-register-terms__box {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1.5px solid #aeb8c7;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.ua-register-terms__box svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.ua-register-terms input:checked + .ua-register-terms__box {
    border-color: var(--ua-a-teal, #12b8a6);
    background: linear-gradient(145deg, var(--ua-a-teal, #12b8a6), #20d2bf);
    box-shadow: 0 6px 16px rgba(18, 184, 166, 0.22);
}

.ua-register-terms input:checked + .ua-register-terms__box svg {
    opacity: 1;
    transform: scale(1);
}

.ua-register-terms:has(input:focus-visible) .ua-register-terms__box {
    outline: 3px solid rgba(18, 184, 166, 0.17);
    outline-offset: 3px;
}

.ua-register-terms__text a {
    color: var(--ua-a-red, #ef233c);
    font-weight: 800;
}

.ua-register-terms__text a:hover {
    color: var(--ua-a-red-deep, #c91831);
    text-decoration: underline;
}

.ua-register-submit {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        #c91831 0%,
        #ef233c 34%,
        #ff6b5f 72%,
        #ff7b52 100%
    );
    color: #fff;
    box-shadow: 0 18px 38px rgba(239, 35, 60, 0.24);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.ua-register-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.18s ease;
}

.ua-register-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 44px rgba(239, 35, 60, 0.29),
        0 9px 23px rgba(255, 107, 95, 0.15);
    filter: saturate(1.04);
}

.ua-register-submit:hover svg {
    transform: translateX(3px);
}
.ua-register-submit:active {
    transform: translateY(0);
}

.ua-register-trust {
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #8a97a9;
    font-size: 10px;
    font-weight: 700;
}

.ua-register-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ua-register-trust svg {
    width: 16px;
    height: 16px;
    color: var(--ua-a-teal, #12b8a6);
}

.ua-register-trust i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd2dc;
}

.ua-register-tagline {
    margin-top: auto;
    padding: 11px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #5f6c7f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.ua-register-tagline i {
    width: 18px;
    height: 9px;
    display: block;
    background: var(--ua-a-red, #ef233c);
    transform: skewX(-28deg);
}

/* ---------- Match the perfected Velocity/Apex shell ---------- */
body:has(.ua-register--velocity) .ua-auth-hero__image {
    filter: saturate(1.18) brightness(1.08) contrast(1.03);
    transform: scale(1.018);
}

body:has(.ua-register--velocity) .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(6, 16, 31, 0.72) 0%,
            rgba(7, 19, 35, 0.48) 38%,
            rgba(7, 23, 36, 0.17) 74%,
            rgba(7, 23, 36, 0.07) 100%
        ),
        linear-gradient(
            180deg,
            rgba(9, 15, 28, 0.2) 0%,
            rgba(9, 15, 28, 0.02) 40%,
            rgba(6, 13, 25, 0.72) 100%
        );
}

body:has(.ua-register--velocity) .ua-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 13% 18%,
            rgba(59, 130, 246, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 82% 16%,
            rgba(246, 183, 60, 0.14),
            transparent 24%
        ),
        radial-gradient(
            circle at 19% 79%,
            rgba(18, 184, 166, 0.18),
            transparent 30%
        );
    mix-blend-mode: screen;
}

body:has(.ua-register--velocity) .ua-auth-hero__glow {
    left: -24%;
    bottom: -30%;
    width: 88%;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.5) 0%,
        rgba(255, 107, 95, 0.26) 27%,
        rgba(18, 184, 166, 0.1) 47%,
        rgba(239, 35, 60, 0) 70%
    );
    filter: blur(11px);
}

body:has(.ua-register--velocity) .ua-auth-brand img {
    filter: drop-shadow(0 9px 24px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

body:has(.ua-register--velocity) .ua-auth-kicker {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(
        110deg,
        rgba(12, 27, 48, 0.56),
        rgba(18, 184, 166, 0.14)
    );
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

body:has(.ua-register--velocity) .ua-auth-kicker__dot {
    background: var(--ua-a-amber, #f6b73c);
    box-shadow:
        0 0 0 5px rgba(246, 183, 60, 0.16),
        0 0 22px rgba(246, 183, 60, 0.75);
}

body:has(.ua-register--velocity) .ua-auth-hero__title span {
    color: #ff4557;
    text-shadow: 0 10px 32px rgba(239, 35, 60, 0.26);
}

body:has(.ua-register--velocity) .ua-auth-benefit__icon {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(
        145deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-coral, #ff6b5f)
    );
    box-shadow:
        0 14px 30px rgba(239, 35, 60, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body:has(.ua-register--velocity)
    .ua-auth-benefit:nth-child(2)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #0bb7aa, #21d1c1);
    box-shadow:
        0 14px 30px rgba(18, 184, 166, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body:has(.ua-register--velocity)
    .ua-auth-benefit:nth-child(3)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #ff9e2c, #ffc14d);
    box-shadow:
        0 14px 30px rgba(246, 183, 60, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body:has(.ua-register--velocity)
    .ua-auth-benefit:nth-child(4)
    .ua-auth-benefit__icon {
    background: linear-gradient(145deg, #357df3, #5aa4ff);
    box-shadow:
        0 14px 30px rgba(59, 130, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body:has(.ua-register--velocity) .ua-auth-panel {
    overflow: visible;
    background:
        radial-gradient(
            circle at 86% 9%,
            rgba(239, 35, 60, 0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 14% 88%,
            rgba(18, 184, 166, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 76%,
            rgba(246, 183, 60, 0.08),
            transparent 24%
        ),
        linear-gradient(145deg, #fffdf8 0%, #fffaf8 42%, #f7fffd 100%);
}

/* ---------- Velocity Apex register frame ---------- */
.ua-register--apex {
    position: relative;
    padding-top: 24px;
    padding-bottom: 22px;
}

.ua-register--apex::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -205px;
    top: 26%;
    border-radius: 50%;
    border: 44px solid rgba(18, 184, 166, 0.034);
    pointer-events: none;
}

.ua-register--apex .ua-register__topbar {
    min-height: 38px;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.ua-register--apex .ua-register__status-pill,
.ua-register--apex .ua-register__login-prompt {
    display: inline-flex;
    align-items: center;
}

.ua-register--apex .ua-register__status-pill {
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(18, 184, 166, 0.16);
    border-radius: 999px;
    background: rgba(239, 255, 251, 0.84);
    color: #197c74;
    box-shadow: 0 7px 18px rgba(18, 184, 166, 0.055);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.ua-register--apex .ua-register__status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ua-a-teal, #12b8a6);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.1),
        0 0 14px rgba(18, 184, 166, 0.32);
}

.ua-register--apex .ua-register__login-prompt {
    gap: 8px;
    color: #59697d;
    font-size: 13px;
}

.ua-register--apex .ua-register__login-prompt a {
    color: var(--ua-a-red, #ef233c);
    font-weight: 900;
}

.ua-register--apex .ua-register__login-prompt a:hover {
    color: var(--ua-a-red-deep, #c91831);
    text-decoration: none;
}

.ua-register--apex .ua-register-card {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin-top: clamp(20px, 3.2vh, 38px);
    margin-bottom: clamp(16px, 2.4vh, 28px);
    padding: 30px clamp(25px, 3vw, 42px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 32px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.94),
        rgba(255, 255, 255, 0.84)
    );
    box-shadow:
        0 38px 90px rgba(11, 23, 40, 0.13),
        0 12px 34px rgba(239, 35, 60, 0.055),
        0 8px 28px rgba(18, 184, 166, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(26px) saturate(1.08);
    -webkit-backdrop-filter: blur(26px) saturate(1.08);
    overflow: visible;
}

.ua-register--apex .ua-register-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    height: 5px;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(
        115deg,
        rgba(239, 35, 60, 0.86) 0%,
        rgba(255, 107, 95, 0.8) 28%,
        rgba(246, 183, 60, 0.72) 50%,
        rgba(18, 184, 166, 0.75) 74%,
        rgba(59, 130, 246, 0.66) 100%
    );
}

.ua-register-card__aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ua-register-card__aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.ua-register-card__aurora-red {
    width: 190px;
    height: 190px;
    top: -122px;
    left: -92px;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.12),
        transparent 68%
    );
}

.ua-register-card__aurora-teal {
    width: 176px;
    height: 176px;
    right: -96px;
    top: 42%;
    background: radial-gradient(
        circle,
        rgba(18, 184, 166, 0.12),
        transparent 68%
    );
}

.ua-register-card__aurora-amber {
    width: 140px;
    height: 140px;
    left: 44%;
    bottom: -92px;
    background: radial-gradient(
        circle,
        rgba(246, 183, 60, 0.1),
        transparent 68%
    );
}

.ua-register--apex .ua-register-logo {
    margin-bottom: 18px;
}

.ua-register--apex .ua-register-logo img {
    width: clamp(246px, 22vw, 326px);
    max-height: none;
    filter: drop-shadow(0 9px 22px rgba(11, 23, 40, 0.08));
}

.ua-register--apex .ua-register-heading {
    margin-bottom: 22px;
}

.ua-register--apex .ua-register-heading__eyebrow {
    margin-bottom: 9px;
    color: var(--ua-a-red, #ef233c);
}

.ua-register--apex .ua-register-heading__eyebrow::before {
    width: 42px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-amber, #f6b73c)
    );
    box-shadow: 0 3px 10px rgba(239, 35, 60, 0.15);
}

.ua-register--apex .ua-register-heading h1 {
    color: var(--ua-a-navy, #0b1728);
    font-size: clamp(38px, 2.75vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.ua-register--apex .ua-register-heading p {
    max-width: 680px;
    margin-top: 10px;
    color: var(--ua-a-muted, #68778c);
    font-size: 13.5px;
}

.ua-register-heading__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.ua-register-heading__chips span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.04);
    color: #516176;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.ua-register-heading__chips span:nth-child(1) {
    border-color: rgba(239, 35, 60, 0.17);
    color: #b92338;
}
.ua-register-heading__chips span:nth-child(2) {
    border-color: rgba(18, 184, 166, 0.17);
    color: #0c7f75;
}
.ua-register-heading__chips span:nth-child(3) {
    border-color: rgba(246, 183, 60, 0.22);
    color: #9a6b0c;
}

.ua-register-heading__chips svg {
    width: 15px;
    height: 15px;
}

.ua-register--apex .ua-register-grid {
    gap: 15px 13px;
}

.ua-register--apex .ua-field-label {
    color: #3c4b60;
    font-weight: 850;
}

.ua-register--apex .ua-register-input,
.ua-register--apex .ua-phone-control,
.ua-register--apex .ua-password-control {
    border-color: #dfe6ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 5px 13px rgba(15, 23, 42, 0.025);
}

.ua-register--apex .ua-register-input:hover,
.ua-register--apex .ua-phone-control:hover,
.ua-register--apex .ua-password-control:hover {
    border-color: #cdd7e2;
}

.ua-register--apex .ua-register-input:focus-within,
.ua-register--apex .ua-phone:focus-within .ua-phone-control,
.ua-register--apex .ua-password-control:focus-within {
    border-color: var(--ua-a-teal, #12b8a6);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.095),
        0 9px 22px rgba(18, 184, 166, 0.06);
}

.ua-register--apex .ua-register-input__icon,
.ua-register--apex .ua-password-icon,
.ua-register--apex .ua-password-toggle {
    color: #8090a5;
}

.ua-register--apex .ua-register-input:focus-within .ua-register-input__icon,
.ua-register--apex .ua-password-control:focus-within .ua-password-icon {
    color: var(--ua-a-teal, #12b8a6);
}

.ua-register--apex .ua-phone-flag {
    background: linear-gradient(180deg, #fff, #f7fafc);
}

.ua-register--apex .ua-phone-dial {
    color: var(--ua-a-navy, #0b1728);
    background: linear-gradient(180deg, #f8fbfd, #f2f7f9);
}

.ua-register--apex .ua-phone-menu {
    border-color: #dfe7ee;
    border-radius: 17px;
    box-shadow:
        0 24px 60px rgba(11, 23, 40, 0.16),
        0 8px 22px rgba(18, 184, 166, 0.06);
}

.ua-register--apex .ua-phone-option:hover {
    background: #f1fbf9;
}
.ua-register--apex .ua-phone-option.is-active {
    background: linear-gradient(90deg, #effcf9, #fff8f5);
}
.ua-register--apex .ua-phone-option.is-active .ua-phone-option__dial {
    color: var(--ua-a-teal-deep, #087f76);
}

.ua-register--apex .ua-password-strength {
    border-color: rgba(18, 184, 166, 0.13);
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(247, 255, 253, 0.94),
        rgba(255, 250, 247, 0.92)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.ua-register--apex .ua-register-terms {
    padding: 12px 14px;
    border: 1px solid #e6ebf0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.76);
}

.ua-register--apex .ua-register-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 60px;
    border-radius: 14px;
    background: linear-gradient(
        110deg,
        var(--ua-a-red-deep, #c91831) 0%,
        var(--ua-a-red, #ef233c) 34%,
        var(--ua-a-coral, #ff6b5f) 72%,
        #ff7b52 100%
    );
    box-shadow:
        0 18px 36px rgba(239, 35, 60, 0.24),
        0 6px 18px rgba(255, 107, 95, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-size: 15.5px;
}

.ua-register--apex .ua-register-submit::after {
    content: "";
    position: absolute;
    inset: auto 7% 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    opacity: 0.7;
}

.ua-register--apex .ua-register-trust {
    margin-top: 18px;
    color: #68788b;
}

.ua-register--apex .ua-register-trust span:first-child svg {
    color: var(--ua-a-teal, #12b8a6);
}
.ua-register--apex .ua-register-trust span:last-child svg {
    color: var(--ua-a-amber, #f6b73c);
}

.ua-register--apex .ua-register-tagline {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 6px;
    color: #627186;
}

.ua-register--apex .ua-register-tagline i:first-child {
    background: linear-gradient(
        90deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-coral, #ff6b5f)
    );
}

.ua-register--apex .ua-register-tagline i:last-child {
    background: linear-gradient(
        90deg,
        var(--ua-a-teal, #12b8a6),
        var(--ua-a-blue, #3b82f6)
    );
}

.ua-register--apex a:focus-visible,
.ua-register--apex button:focus-visible,
.ua-register--apex input:focus-visible {
    outline: 3px solid rgba(18, 184, 166, 0.2);
    outline-offset: 3px;
}

.ua-register--apex .ua-register-submit:focus-visible {
    outline-color: rgba(239, 35, 60, 0.24);
}

@media (prefers-reduced-motion: no-preference) {
    .ua-register--apex .ua-register-card__aurora-teal {
        animation: ua-apex-float 7s ease-in-out infinite;
    }

    .ua-register--apex .ua-register__status-pill i {
        animation: ua-apex-pulse 2.8s ease-in-out infinite;
    }
}

@media (max-width: 1360px) {
    .ua-register--apex {
        padding-inline: 36px;
    }

    .ua-register--apex .ua-register-card {
        width: min(100%, 710px);
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 27px 30px 22px;
    }

    .ua-register--apex .ua-register-heading h1 {
        font-size: clamp(36px, 2.8vw, 48px);
    }
}

@media (max-width: 1120px) {
    body:has(.ua-register--velocity) .ua-auth-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
    }

    body:has(.ua-register--velocity) .ua-auth-hero__content {
        width: min(100% - 54px, 680px);
    }

    body:has(.ua-register--velocity) .ua-auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 480px;
    }
}

@media (max-width: 1024px) {
    .ua-register--apex {
        min-height: calc(100svh - 96px);
        padding: 18px 28px 24px;
    }

    .ua-register--apex .ua-register-logo {
        display: none;
    }

    .ua-register--apex .ua-register-card {
        width: min(100%, 760px);
        margin-top: 22px;
    }

    .ua-register--apex .ua-register__topbar {
        width: min(100%, 760px);
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .ua-register--apex {
        padding: 12px 16px 22px;
    }

    .ua-register--apex .ua-register__topbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .ua-register--apex .ua-register__status-pill {
        display: none;
    }

    .ua-register--apex .ua-register__login-prompt {
        font-size: 12px;
    }

    .ua-register--apex .ua-register-card {
        margin-top: 15px;
        padding: 22px 17px 19px;
        border-radius: 24px;
    }

    .ua-register--apex .ua-register-heading {
        text-align: center;
    }

    .ua-register--apex .ua-register-heading__eyebrow {
        justify-content: center;
    }

    .ua-register--apex .ua-register-heading__chips {
        justify-content: center;
    }

    .ua-register--apex .ua-register-heading__chips span:nth-child(3) {
        display: none;
    }

    .ua-register--apex .ua-register-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ua-register--apex .ua-register-field--full {
        grid-column: auto;
    }

    .ua-register--apex .ua-phone-control {
        grid-template-columns: 68px 88px minmax(0, 1fr);
    }

    .ua-register--apex .ua-register-trust {
        flex-direction: column;
        gap: 7px;
    }

    .ua-register--apex .ua-register-trust i {
        display: none;
    }

    .ua-register--apex .ua-register-tagline {
        gap: 9px;
        font-size: 8px;
        letter-spacing: 0.14em;
        text-align: center;
    }
}

/* =========================================================
   LOGIN + REGISTER TYPOGRAPHY & ROLE SELECT REFINEMENT
   Keeps the Velocity/Apex palette while improving readability.
   ========================================================= */

body.ua-auth-body,
.ua-login--apex,
.ua-register--apex {
    font-family:
        "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings:
        "cv02" 1,
        "cv03" 1,
        "cv04" 1,
        "cv11" 1;
}

/* ---------- More readable shared typography ---------- */
.ua-login--apex .ua-login__status-pill,
.ua-register--apex .ua-register__status-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.ua-login--apex .ua-login__register-prompt,
.ua-register--apex .ua-register__login-prompt {
    font-size: 13.5px;
    line-height: 1.45;
}

.ua-login--apex .ua-login__register-prompt a,
.ua-register--apex .ua-register__login-prompt a {
    font-weight: 800;
}

.ua-login--apex .ua-login-heading__eyebrow,
.ua-register--apex .ua-register-heading__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.ua-login--apex .ua-login-heading h1,
.ua-register--apex .ua-register-heading h1 {
    font-weight: 800;
    letter-spacing: -0.042em;
}

.ua-login--apex .ua-login-heading p,
.ua-register--apex .ua-register-heading p {
    color: #5f6f83;
    font-size: 14px;
    line-height: 1.65;
}

.ua-login--apex .ua-login-heading__chips span,
.ua-register--apex .ua-register-heading__chips span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.ua-login--apex .ua-field-label,
.ua-register--apex .ua-field-label {
    color: #26364b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.ua-login--apex .ua-phone-input,
.ua-login--apex .ua-password-input,
.ua-register--apex .ua-register-input input,
.ua-register--apex .ua-phone-input,
.ua-register--apex .ua-password-input,
.ua-register--apex .ua-role-select-shell select {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.006em;
}

.ua-register--apex .ua-register-hint,
.ua-register--apex .ua-field-error {
    font-size: 11.5px;
    line-height: 1.5;
}

.ua-register--apex .ua-register-terms {
    font-size: 12.5px;
    line-height: 1.58;
}

.ua-register--apex .ua-password-strength__top,
.ua-register--apex .ua-password-strength__top strong {
    font-size: 11.5px;
}

.ua-register--apex .ua-password-strength p {
    font-size: 10.75px;
}

.ua-register--apex .ua-register-submit,
.ua-login--apex .ua-login-submit {
    font-weight: 800;
    letter-spacing: 0;
}

/* ---------- Account role input ---------- */
.ua-role-field {
    position: relative;
}

.ua-role-select-shell {
    position: relative;
    min-height: 58px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 48px;
    align-items: center;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(239, 35, 60, 0.035), transparent 23%),
        rgba(255, 255, 255, 0.97);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 6px 15px rgba(15, 23, 42, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
    overflow: hidden;
}

.ua-role-select-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-coral, #ff6b5f)
    );
    opacity: 0.9;
}

.ua-role-select-shell:hover {
    border-color: #c9d5e0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 10px 24px rgba(15, 23, 42, 0.055);
}

.ua-role-select-shell:focus-within {
    border-color: var(--ua-a-teal, #12b8a6);
    background:
        linear-gradient(90deg, rgba(18, 184, 166, 0.045), transparent 25%), #fff;
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.095),
        0 12px 28px rgba(18, 184, 166, 0.065);
}

.ua-role-select-shell.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.07);
}

.ua-role-select__icon,
.ua-role-select__chevron {
    display: grid;
    place-items: center;
    color: #7b8ba0;
    pointer-events: none;
}

.ua-role-select__icon {
    width: 54px;
    height: 56px;
}

.ua-role-select__icon svg {
    width: 21px;
    height: 21px;
}

.ua-role-select__chevron {
    width: 48px;
    height: 56px;
    border-left: 1px solid #edf1f5;
    background: linear-gradient(
        180deg,
        rgba(248, 251, 253, 0.78),
        rgba(243, 248, 250, 0.68)
    );
}

.ua-role-select__chevron svg {
    width: 17px;
    height: 17px;
}

.ua-role-select-shell:focus-within .ua-role-select__icon,
.ua-role-select-shell:focus-within .ua-role-select__chevron {
    color: var(--ua-a-teal-deep, #087f76);
}

.ua-role-select-shell select {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--ua-a-navy, #0b1728);
    cursor: pointer;
}

.ua-role-select-shell select option {
    color: #17253a;
    background: #fff;
    font-size: 14px;
}

/* ---------- Dynamic role information strip ---------- */
.ua-role-context {
    position: relative;
    min-height: 56px;
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid rgba(239, 35, 60, 0.13);
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        rgba(255, 245, 246, 0.92),
        rgba(255, 251, 248, 0.88)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ua-role-context__mark {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-coral, #ff6b5f)
    );
    box-shadow:
        0 0 0 5px rgba(239, 35, 60, 0.08),
        0 6px 16px rgba(239, 35, 60, 0.18);
}

.ua-role-context__copy {
    min-width: 0;
    display: block;
}

.ua-role-context strong,
.ua-role-context small {
    display: block;
}

.ua-role-context strong {
    margin-bottom: 2px;
    color: #25354a;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
}

.ua-role-context small {
    color: #6e7c90;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.ua-role-context[data-role="private_seller"] {
    border-color: rgba(18, 184, 166, 0.16);
    background: linear-gradient(
        110deg,
        rgba(239, 255, 251, 0.92),
        rgba(249, 255, 254, 0.9)
    );
}

.ua-role-context[data-role="private_seller"] .ua-role-context__mark {
    background: linear-gradient(145deg, var(--ua-a-teal, #12b8a6), #27d1c0);
    box-shadow:
        0 0 0 5px rgba(18, 184, 166, 0.09),
        0 6px 16px rgba(18, 184, 166, 0.18);
}

.ua-role-context[data-role="dealer"] {
    border-color: rgba(246, 183, 60, 0.22);
    background: linear-gradient(
        110deg,
        rgba(255, 250, 237, 0.95),
        rgba(246, 250, 255, 0.92)
    );
}

.ua-role-context[data-role="dealer"] .ua-role-context__mark {
    background: linear-gradient(
        145deg,
        var(--ua-a-amber, #f6b73c),
        var(--ua-a-blue, #3b82f6)
    );
    box-shadow:
        0 0 0 5px rgba(246, 183, 60, 0.1),
        0 6px 16px rgba(59, 130, 246, 0.14);
}

/* ---------- Registration spacing refinement with extra role field ---------- */
.ua-register--apex .ua-register-card {
    width: min(100%, 790px);
}

.ua-register--apex .ua-register-grid {
    gap: 15px 14px;
}

.ua-register--apex .ua-register-form {
    gap: 16px;
}

.ua-register--apex .ua-register-heading {
    margin-bottom: 21px;
}

.ua-register--apex .ua-register-submit {
    min-height: 61px;
    font-size: 15px;
}

.ua-register--apex .ua-register-submit span {
    line-height: 1;
}

/* ---------- Mobile role input ---------- */
@media (max-width: 1024px) {
    .ua-register--apex .ua-register-card,
    .ua-register--apex .ua-register__topbar {
        width: min(100%, 790px);
    }
}

@media (max-width: 640px) {
    .ua-login--apex .ua-login-heading p,
    .ua-register--apex .ua-register-heading p {
        font-size: 13.5px;
    }

    .ua-register--apex .ua-register-card {
        padding-inline: 18px;
    }

    .ua-role-select-shell {
        grid-template-columns: 48px minmax(0, 1fr) 44px;
    }

    .ua-role-select__icon {
        width: 48px;
    }

    .ua-role-select__chevron {
        width: 44px;
    }

    .ua-role-context {
        align-items: flex-start;
    }

    .ua-role-context small {
        font-size: 10.75px;
    }
}

/* =========================================================
   END LOGIN + REGISTER TYPOGRAPHY & ROLE SELECT REFINEMENT
   ========================================================= */

/* =========================================================
   FORGOT PASSWORD - VELOCITY APEX
   Colorful recovery UI aligned with Login + Register.
   Scoped to .ua-forgot--velocity / .ua-forgot--apex.
   ========================================================= */

/* ---------- Match the Velocity/Apex split-screen shell ---------- */
body:has(.ua-forgot--velocity) .ua-auth-hero__image {
    filter: saturate(1.17) brightness(1.09) contrast(1.035);
    transform: scale(1.016);
}

body:has(.ua-forgot--velocity) .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 24, 0.75) 0%,
            rgba(6, 18, 33, 0.52) 36%,
            rgba(8, 25, 39, 0.21) 70%,
            rgba(10, 28, 40, 0.09) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 10, 21, 0.25) 0%,
            rgba(3, 10, 21, 0.025) 39%,
            rgba(4, 11, 23, 0.76) 100%
        );
}

body:has(.ua-forgot--velocity) .ua-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 13% 18%,
            rgba(59, 130, 246, 0.15),
            transparent 29%
        ),
        radial-gradient(
            circle at 82% 16%,
            rgba(246, 183, 60, 0.13),
            transparent 24%
        ),
        radial-gradient(
            circle at 19% 79%,
            rgba(18, 184, 166, 0.18),
            transparent 30%
        );
    mix-blend-mode: screen;
}

body:has(.ua-forgot--velocity) .ua-auth-hero__glow {
    left: -24%;
    bottom: -30%;
    width: 88%;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.48) 0%,
        rgba(255, 107, 95, 0.25) 27%,
        rgba(18, 184, 166, 0.1) 47%,
        rgba(239, 35, 60, 0) 70%
    );
    filter: blur(11px);
}

body:has(.ua-forgot--velocity) .ua-auth-brand img {
    filter: drop-shadow(0 9px 24px rgba(0, 0, 0, 0.27))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

body:has(.ua-forgot--apex) .ua-auth-panel {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 11% 13%,
            rgba(239, 35, 60, 0.085),
            transparent 25%
        ),
        radial-gradient(
            circle at 91% 18%,
            rgba(18, 184, 166, 0.1),
            transparent 26%
        ),
        radial-gradient(
            circle at 80% 86%,
            rgba(246, 183, 60, 0.075),
            transparent 25%
        ),
        linear-gradient(145deg, #fffdf9 0%, #fff 42%, #f4fffc 100%);
}

body:has(.ua-forgot--apex) .ua-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(11, 23, 40, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 23, 40, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.42),
        transparent 72%
    );
}

body:has(.ua-forgot--apex) .ua-auth-panel::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -180px;
    bottom: -150px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.08),
        rgba(18, 184, 166, 0.03) 46%,
        transparent 72%
    );
    pointer-events: none;
}

/* ---------- Page ---------- */
.ua-forgot--apex {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(34px, 4.6vw, 76px) 24px;
    color: var(--ua-a-ink, #142033);
}

.ua-forgot--apex .ua-forgot__topbar {
    width: min(100%, 650px);
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ua-forgot--apex .ua-forgot__status-pill,
.ua-forgot--apex .ua-forgot__login-prompt {
    display: inline-flex;
    align-items: center;
}

.ua-forgot--apex .ua-forgot__status-pill {
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(18, 184, 166, 0.16);
    border-radius: 999px;
    background: rgba(239, 255, 251, 0.86);
    color: #197c74;
    box-shadow: 0 7px 18px rgba(18, 184, 166, 0.055);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.ua-forgot--apex .ua-forgot__status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ua-a-teal, #12b8a6);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.1),
        0 0 14px rgba(18, 184, 166, 0.32);
}

.ua-forgot--apex .ua-forgot__login-prompt {
    gap: 8px;
    color: #59697d;
    font-size: 13px;
    font-weight: 550;
}

.ua-forgot--apex .ua-forgot__login-prompt a {
    color: var(--ua-a-red, #ef233c);
    font-weight: 900;
}

.ua-forgot--apex .ua-forgot__login-prompt a:hover {
    color: var(--ua-a-red-deep, #c91831);
}

/* ---------- Card ---------- */
.ua-forgot--apex .ua-forgot-card {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    margin: clamp(22px, 4vh, 48px) auto clamp(18px, 3vh, 34px);
    padding: 32px clamp(27px, 3.3vw, 46px) 28px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.955),
        rgba(255, 255, 255, 0.855)
    );
    box-shadow:
        0 38px 90px rgba(11, 23, 40, 0.13),
        0 12px 34px rgba(239, 35, 60, 0.055),
        0 8px 28px rgba(18, 184, 166, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(26px) saturate(1.08);
    -webkit-backdrop-filter: blur(26px) saturate(1.08);
    overflow: visible;
}

.ua-forgot--apex .ua-forgot-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    height: 5px;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(
        115deg,
        rgba(239, 35, 60, 0.88) 0%,
        rgba(255, 107, 95, 0.82) 28%,
        rgba(246, 183, 60, 0.72) 50%,
        rgba(18, 184, 166, 0.76) 74%,
        rgba(59, 130, 246, 0.68) 100%
    );
}

.ua-forgot-card__aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ua-forgot-card__aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.ua-forgot-card__aurora-red {
    width: 200px;
    height: 200px;
    top: -128px;
    left: -96px;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.125),
        transparent 68%
    );
}

.ua-forgot-card__aurora-teal {
    width: 180px;
    height: 180px;
    right: -98px;
    top: 40%;
    background: radial-gradient(
        circle,
        rgba(18, 184, 166, 0.12),
        transparent 68%
    );
}

.ua-forgot-card__aurora-amber {
    width: 150px;
    height: 150px;
    left: 40%;
    bottom: -100px;
    background: radial-gradient(
        circle,
        rgba(246, 183, 60, 0.11),
        transparent 68%
    );
}

/* ---------- Brand + heading ---------- */
.ua-forgot--apex .ua-forgot-logo {
    width: fit-content;
    display: block;
    margin: 0 auto 20px;
}

.ua-forgot--apex .ua-forgot-logo img {
    display: block;
    width: clamp(246px, 22vw, 326px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 9px 22px rgba(11, 23, 40, 0.08));
}

.ua-forgot--apex .ua-forgot-heading {
    margin-bottom: 23px;
    text-align: left;
}

.ua-forgot--apex .ua-forgot-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--ua-a-red, #ef233c);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-forgot--apex .ua-forgot-heading__eyebrow::before {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-amber, #f6b73c)
    );
    box-shadow: 0 3px 10px rgba(239, 35, 60, 0.15);
}

.ua-forgot--apex .ua-forgot-heading h1 {
    margin: 0;
    color: var(--ua-a-navy, #0b1728);
    font-size: clamp(38px, 2.75vw, 52px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.ua-forgot--apex .ua-forgot-heading p {
    max-width: 570px;
    margin: 10px 0 0;
    color: var(--ua-a-muted, #68778c);
    font-size: 13.75px;
    font-weight: 500;
    line-height: 1.68;
}

.ua-forgot-heading__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ua-forgot-heading__chips span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.04);
    color: #516176;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.ua-forgot-heading__chips span:nth-child(1) {
    border-color: rgba(239, 35, 60, 0.17);
    color: #b92338;
}
.ua-forgot-heading__chips span:nth-child(2) {
    border-color: rgba(18, 184, 166, 0.18);
    color: #0c7f75;
}
.ua-forgot-heading__chips span:nth-child(3) {
    border-color: rgba(246, 183, 60, 0.23);
    color: #9a6b0c;
}

.ua-forgot-heading__chips svg {
    width: 15px;
    height: 15px;
}

/* ---------- Success status ---------- */
.ua-forgot--apex .ua-forgot-status {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 19px;
    padding: 12px 14px;
    border: 1px solid rgba(18, 184, 166, 0.17);
    border-radius: 14px;
    background: linear-gradient(
        110deg,
        rgba(239, 255, 251, 0.95),
        rgba(250, 255, 254, 0.91)
    );
    color: #196e67;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
}

.ua-forgot--apex .ua-forgot-status__icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--ua-a-teal, #12b8a6), #28cfbd);
    color: #fff;
    box-shadow: 0 7px 17px rgba(18, 184, 166, 0.18);
}

.ua-forgot--apex .ua-forgot-status__icon svg {
    width: 16px;
    height: 16px;
}

/* ---------- Form ---------- */
.ua-forgot--apex .ua-forgot-form {
    display: grid;
    gap: 15px;
}

.ua-forgot--apex .ua-forgot-field label {
    display: block;
    margin: 0 0 7px;
    color: #3c4b60;
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.3;
}

.ua-forgot--apex .ua-forgot-input {
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 6px 16px rgba(15, 23, 42, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.ua-forgot--apex .ua-forgot-input:hover {
    border-color: #cdd7e2;
}

.ua-forgot--apex .ua-forgot-input:focus-within {
    border-color: var(--ua-a-teal, #12b8a6);
    background:
        linear-gradient(90deg, rgba(18, 184, 166, 0.035), transparent 24%), #fff;
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.095),
        0 10px 24px rgba(18, 184, 166, 0.06);
}

.ua-forgot--apex .ua-forgot-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.07);
}

.ua-forgot--apex .ua-forgot-input__icon {
    width: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: #8090a5;
    transition: color 0.18s ease;
}

.ua-forgot--apex .ua-forgot-input:focus-within .ua-forgot-input__icon {
    color: var(--ua-a-teal, #12b8a6);
}

.ua-forgot--apex .ua-forgot-input__icon svg {
    width: 20px;
    height: 20px;
}

.ua-forgot--apex .ua-forgot-input input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 17px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ua-a-navy, #0b1728);
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.ua-forgot--apex .ua-forgot-input input::placeholder {
    color: #99a5b5;
    font-weight: 500;
}

.ua-forgot--apex .ua-field-error {
    margin: 7px 0 0;
    color: #d21f36;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* ---------- Delivery hint ---------- */
.ua-forgot-delivery-note {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        rgba(246, 250, 255, 0.92),
        rgba(249, 255, 253, 0.9)
    );
}

.ua-forgot-delivery-note__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(
        145deg,
        rgba(59, 130, 246, 0.12),
        rgba(18, 184, 166, 0.12)
    );
    color: var(--ua-a-blue, #3b82f6);
}

.ua-forgot-delivery-note__icon svg {
    width: 17px;
    height: 17px;
}

.ua-forgot-delivery-note strong,
.ua-forgot-delivery-note small {
    display: block;
}

.ua-forgot-delivery-note strong {
    margin-bottom: 2px;
    color: #33445a;
    font-size: 11.5px;
    font-weight: 850;
}

.ua-forgot-delivery-note small {
    color: #76859a;
    font-size: 10.75px;
    font-weight: 500;
    line-height: 1.45;
}

/* ---------- CTA ---------- */
.ua-forgot--apex .ua-forgot-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(
        110deg,
        var(--ua-a-red-deep, #c91831) 0%,
        var(--ua-a-red, #ef233c) 34%,
        var(--ua-a-coral, #ff6b5f) 72%,
        #ff7b52 100%
    );
    color: #fff;
    box-shadow:
        0 18px 36px rgba(239, 35, 60, 0.24),
        0 6px 18px rgba(255, 107, 95, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.ua-forgot--apex .ua-forgot-submit::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -20%;
    width: 36%;
    height: 240%;
    z-index: -1;
    transform: rotate(20deg);
    background: rgba(255, 255, 255, 0.18);
    transition: left 0.45s ease;
}

.ua-forgot--apex .ua-forgot-submit::after {
    content: "";
    position: absolute;
    inset: auto 7% 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    opacity: 0.7;
}

.ua-forgot--apex .ua-forgot-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.18s ease;
}

.ua-forgot--apex .ua-forgot-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 44px rgba(239, 35, 60, 0.29),
        0 9px 23px rgba(255, 107, 95, 0.15);
    filter: saturate(1.04);
}

.ua-forgot--apex .ua-forgot-submit:hover::before {
    left: 108%;
}

.ua-forgot--apex .ua-forgot-submit:hover svg {
    transform: translateX(3px);
}

.ua-forgot--apex .ua-forgot-submit:active {
    transform: translateY(0);
}

/* ---------- Back link ---------- */
.ua-forgot--apex .ua-forgot-back {
    width: fit-content;
    margin: 17px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #607086;
    font-size: 12px;
    font-weight: 800;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.ua-forgot--apex .ua-forgot-back svg {
    width: 17px;
    height: 17px;
    transition: transform 0.18s ease;
}

.ua-forgot--apex .ua-forgot-back:hover {
    color: var(--ua-a-red, #ef233c);
}

.ua-forgot--apex .ua-forgot-back:hover svg {
    transform: translateX(-3px);
}

/* ---------- Security panel ---------- */
.ua-forgot--apex .ua-forgot-help {
    position: relative;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(18, 184, 166, 0.14);
    border-radius: 16px;
    background: linear-gradient(
        110deg,
        rgba(239, 255, 251, 0.88),
        rgba(255, 250, 247, 0.88)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.ua-forgot--apex .ua-forgot-help__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ua-a-teal, #12b8a6), #24ceb9);
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 184, 166, 0.18);
}

.ua-forgot--apex .ua-forgot-help__icon svg {
    width: 20px;
    height: 20px;
}

.ua-forgot--apex .ua-forgot-help strong {
    display: block;
    margin-bottom: 3px;
    color: #2d4055;
    font-size: 11.75px;
    font-weight: 900;
}

.ua-forgot--apex .ua-forgot-help p {
    margin: 0;
    color: #77869a;
    font-size: 10.75px;
    font-weight: 500;
    line-height: 1.5;
}

.ua-forgot-help__badge {
    padding: 6px 9px;
    border: 1px solid rgba(246, 183, 60, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 237, 0.92);
    color: #94660d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Tagline ---------- */
.ua-forgot--apex .ua-forgot-tagline {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #627186;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.ua-forgot--apex .ua-forgot-tagline i {
    width: 18px;
    height: 9px;
    display: block;
    transform: skewX(-28deg);
}

.ua-forgot--apex .ua-forgot-tagline i:first-child {
    background: linear-gradient(
        90deg,
        var(--ua-a-red, #ef233c),
        var(--ua-a-coral, #ff6b5f)
    );
}

.ua-forgot--apex .ua-forgot-tagline i:last-child {
    background: linear-gradient(
        90deg,
        var(--ua-a-teal, #12b8a6),
        var(--ua-a-blue, #3b82f6)
    );
}

/* ---------- Accessibility ---------- */
/*
   Keep the keyboard focus indicator on interactive links/buttons, but do not
   draw a second outline around the native input itself. The input is already
   represented by the focus-within state on .ua-forgot-input, so an additional
   input outline creates the doubled/offset rectangle seen in some browsers.
*/
.ua-forgot--apex a:focus-visible,
.ua-forgot--apex button:focus-visible {
    outline: 3px solid rgba(18, 184, 166, 0.2);
    outline-offset: 3px;
}

.ua-forgot--apex .ua-forgot-submit:focus-visible {
    outline-color: rgba(239, 35, 60, 0.25);
}

/* Professional single-focus treatment for the recovery email control. */
.ua-forgot--apex .ua-forgot-input input,
.ua-forgot--apex .ua-forgot-input input:focus,
.ua-forgot--apex .ua-forgot-input input:focus-visible,
.ua-forgot--apex .ua-forgot-input input:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.ua-forgot--apex .ua-forgot-input:focus-within {
    border-color: rgba(18, 184, 166, 0.88);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(18, 184, 166, 0.1),
        0 12px 28px rgba(18, 184, 166, 0.07),
        0 8px 22px rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
}

.ua-forgot--apex .ua-forgot-input:focus-within .ua-forgot-input__icon {
    color: var(--ua-a-teal, #12b8a6);
}

.ua-forgot--apex .ua-forgot-input:focus-within .ua-forgot-input__icon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 13px;
    bottom: 13px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(18, 184, 166, 0),
        rgba(18, 184, 166, 0.22) 28%,
        rgba(18, 184, 166, 0.22) 72%,
        rgba(18, 184, 166, 0)
    );
}

.ua-forgot--apex .ua-forgot-input__icon {
    position: relative;
}

/* Keep browser autofill inside the designed control rather than painting its
   own box or focus shadow over the field. */
.ua-forgot--apex .ua-forgot-input input:-webkit-autofill,
.ua-forgot--apex .ua-forgot-input input:-webkit-autofill:hover,
.ua-forgot--apex .ua-forgot-input input:-webkit-autofill:focus,
.ua-forgot--apex .ua-forgot-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--ua-a-navy, #0b1728) !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: var(--ua-a-navy, #0b1728);
    transition: background-color 9999s ease-out 0s;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .ua-forgot--apex .ua-forgot-card__aurora-teal {
        animation: ua-apex-float 7s ease-in-out infinite;
    }

    .ua-forgot--apex .ua-forgot__status-pill i {
        animation: ua-apex-pulse 2.8s ease-in-out infinite;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
    .ua-forgot--apex {
        padding-inline: 36px;
    }

    .ua-forgot--apex .ua-forgot-card {
        width: min(100%, 620px);
        margin-top: 22px;
        margin-bottom: 22px;
        padding: 28px 32px 25px;
    }
}

@media (max-width: 1120px) {
    body:has(.ua-forgot--velocity) .ua-auth-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(550px, 1.1fr);
    }

    body:has(.ua-forgot--velocity) .ua-auth-hero__content {
        width: min(100% - 54px, 680px);
    }

    body:has(.ua-forgot--velocity) .ua-auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 480px;
    }
}

@media (max-width: 1024px) {
    .ua-forgot--apex {
        width: min(100%, 760px);
        min-height: 100%;
        margin: 0 auto;
        padding: 26px 24px 30px;
    }

    .ua-forgot--apex .ua-forgot__topbar,
    .ua-forgot--apex .ua-forgot-card {
        width: min(100%, 650px);
    }

    .ua-forgot--apex .ua-forgot-card {
        margin-top: 26px;
    }
}

@media (max-width: 640px) {
    .ua-forgot--apex {
        padding: 19px 15px 24px;
    }

    .ua-forgot--apex .ua-forgot__topbar {
        align-items: flex-start;
        gap: 10px;
    }

    .ua-forgot--apex .ua-forgot__status-pill {
        padding: 6px 9px;
        font-size: 9px;
    }

    .ua-forgot--apex .ua-forgot__login-prompt {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: 11.5px;
        text-align: right;
    }

    .ua-forgot--apex .ua-forgot-card {
        margin-top: 18px;
        padding: 24px 18px 21px;
        border-radius: 24px;
    }

    .ua-forgot--apex .ua-forgot-card::before {
        border-radius: 24px 24px 0 0;
    }

    .ua-forgot--apex .ua-forgot-logo {
        margin-bottom: 16px;
    }

    .ua-forgot--apex .ua-forgot-logo img {
        width: min(270px, 82vw);
    }

    .ua-forgot--apex .ua-forgot-heading h1 {
        font-size: clamp(33px, 10vw, 42px);
    }

    .ua-forgot--apex .ua-forgot-heading p {
        font-size: 13px;
    }

    .ua-forgot-heading__chips {
        gap: 6px;
    }

    .ua-forgot-heading__chips span {
        padding: 7px 9px;
        font-size: 9.5px;
    }

    .ua-forgot--apex .ua-forgot-input {
        min-height: 56px;
    }

    .ua-forgot--apex .ua-forgot-input input {
        height: 54px;
        font-size: 14px;
    }

    .ua-forgot--apex .ua-forgot-submit {
        min-height: 58px;
        font-size: 14.5px;
    }

    .ua-forgot--apex .ua-forgot-help {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: flex-start;
    }

    .ua-forgot-help__badge {
        grid-column: 2;
        justify-self: start;
        margin-top: -3px;
    }

    .ua-forgot--apex .ua-forgot-tagline {
        margin-top: 8px;
        font-size: 8px;
        letter-spacing: 0.18em;
    }
}

@media (max-width: 430px) {
    .ua-forgot--apex .ua-forgot__status-pill {
        display: none;
    }

    .ua-forgot--apex .ua-forgot__topbar {
        justify-content: flex-end;
    }

    .ua-forgot--apex .ua-forgot-card {
        padding-inline: 16px;
    }

    .ua-forgot-heading__chips span:nth-child(3) {
        display: none;
    }

    .ua-forgot-delivery-note {
        align-items: flex-start;
    }
}

/* =========================================================
   END FORGOT PASSWORD - VELOCITY APEX
   ========================================================= */

/* =========================================================
   UNIVAS AUTO - UNIFIED FORM FOCUS / AUTOFILL FIX
   Keeps every auth input professional and prevents the native
   browser focus outline from drawing a second box inside the
   designed control. Keyboard focus remains visible on the
   parent control through :focus-within.
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset native text-field/select focus chrome only.
   Checkboxes/radios keep their native accessibility behavior.
   --------------------------------------------------------- */
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
        [type="range"]
    ),
body.ua-auth-body select,
body.ua-auth-body textarea {
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
        [type="range"]
    ):focus,
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
        [type="range"]
    ):focus-visible,
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
        [type="range"]
    ):active,
body.ua-auth-body select:focus,
body.ua-auth-body select:focus-visible,
body.ua-auth-body select:active,
body.ua-auth-body textarea:focus,
body.ua-auth-body textarea:focus-visible,
body.ua-auth-body textarea:active {
    outline: 0 !important;
    box-shadow: none !important;
}

/* Chrome / Edge occasionally paints an extra inner border. */
body.ua-auth-body input::-webkit-contacts-auto-fill-button,
body.ua-auth-body input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

/* ---------------------------------------------------------
   2. One consistent focus ring around the COMPLETE control.
   --------------------------------------------------------- */
.ua-login--apex .ua-input-control,
.ua-login--apex .ua-phone-control,
.ua-login--apex .ua-password-control,
.ua-register--apex .ua-register-input,
.ua-register--apex .ua-phone-control,
.ua-register--apex .ua-password-control,
.ua-register--apex .ua-role-select-shell,
.ua-forgot--apex .ua-forgot-input,
.ua-reset--apex .ua-reset-input,
.ua-reset--apex .ua-password-control,
.ua-confirm--apex .ua-confirm-input,
.ua-confirm--apex .ua-password-control {
    outline: 0;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.ua-login--apex .ua-input-control:focus-within,
.ua-login--apex .ua-phone:focus-within .ua-phone-control,
.ua-login--apex .ua-password-control:focus-within,
.ua-register--apex .ua-register-input:focus-within,
.ua-register--apex .ua-phone:focus-within .ua-phone-control,
.ua-register--apex .ua-password-control:focus-within,
.ua-register--apex .ua-role-select-shell:focus-within,
.ua-forgot--apex .ua-forgot-input:focus-within,
.ua-reset--apex .ua-reset-input:focus-within,
.ua-reset--apex .ua-password-control:focus-within,
.ua-confirm--apex .ua-confirm-input:focus-within,
.ua-confirm--apex .ua-password-control:focus-within {
    border-color: rgba(18, 184, 166, 0.88) !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 3px rgba(18, 184, 166, 0.1),
        0 12px 28px rgba(18, 184, 166, 0.07),
        0 7px 18px rgba(15, 23, 42, 0.035) !important;
    transform: translateY(-1px);
}

/* Keep invalid controls red even when focused. */
.ua-login--apex .is-invalid:focus-within,
.ua-login--apex .ua-phone.is-invalid .ua-phone-control,
.ua-register--apex .is-invalid:focus-within,
.ua-register--apex .ua-phone.is-invalid .ua-phone-control,
.ua-forgot--apex .ua-forgot-input.is-invalid:focus-within,
.ua-reset--apex .is-invalid:focus-within,
.ua-confirm--apex .is-invalid:focus-within {
    border-color: rgba(239, 35, 60, 0.86) !important;
    box-shadow:
        0 0 0 3px rgba(239, 35, 60, 0.09),
        0 10px 24px rgba(239, 35, 60, 0.06) !important;
}

/* ---------------------------------------------------------
   3. Internal input pieces must never draw their own frame.
   --------------------------------------------------------- */
.ua-login--apex .ua-input-control input,
.ua-login--apex .ua-phone-control input,
.ua-login--apex .ua-password-control input,
.ua-register--apex .ua-register-input input,
.ua-register--apex .ua-phone-control input,
.ua-register--apex .ua-password-control input,
.ua-register--apex .ua-role-select-shell select,
.ua-forgot--apex .ua-forgot-input input,
.ua-reset--apex .ua-reset-input input,
.ua-reset--apex .ua-password-control input,
.ua-confirm--apex .ua-confirm-input input,
.ua-confirm--apex .ua-password-control input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
}

.ua-login--apex .ua-input-control input:focus,
.ua-login--apex .ua-input-control input:focus-visible,
.ua-login--apex .ua-phone-control input:focus,
.ua-login--apex .ua-phone-control input:focus-visible,
.ua-login--apex .ua-password-control input:focus,
.ua-login--apex .ua-password-control input:focus-visible,
.ua-register--apex .ua-register-input input:focus,
.ua-register--apex .ua-register-input input:focus-visible,
.ua-register--apex .ua-phone-control input:focus,
.ua-register--apex .ua-phone-control input:focus-visible,
.ua-register--apex .ua-password-control input:focus,
.ua-register--apex .ua-password-control input:focus-visible,
.ua-register--apex .ua-role-select-shell select:focus,
.ua-register--apex .ua-role-select-shell select:focus-visible,
.ua-forgot--apex .ua-forgot-input input:focus,
.ua-forgot--apex .ua-forgot-input input:focus-visible,
.ua-reset--apex .ua-reset-input input:focus,
.ua-reset--apex .ua-reset-input input:focus-visible,
.ua-reset--apex .ua-password-control input:focus,
.ua-reset--apex .ua-password-control input:focus-visible,
.ua-confirm--apex .ua-confirm-input input:focus,
.ua-confirm--apex .ua-confirm-input input:focus-visible,
.ua-confirm--apex .ua-password-control input:focus,
.ua-confirm--apex .ua-password-control input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------------
   4. Professional autofill behavior for ALL auth text fields.
   Prevents Chrome/Edge saved-info autofill from painting a
   different-colored rectangle inside the component.
   --------------------------------------------------------- */
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill,
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:hover,
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:focus,
body.ua-auth-body
    input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:active {
    -webkit-text-fill-color: #0b1728 !important;
    caret-color: #0b1728;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-out 0s;
}

/* Inputs that live inside segmented controls must stay transparent. */
.ua-login--apex .ua-phone-control input:-webkit-autofill,
.ua-login--apex .ua-phone-control input:-webkit-autofill:focus,
.ua-register--apex .ua-phone-control input:-webkit-autofill,
.ua-register--apex .ua-phone-control input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* ---------------------------------------------------------
   5. Icon and divider polish while focused.
   --------------------------------------------------------- */
.ua-login--apex .ua-input-control:focus-within .ua-input-icon,
.ua-login--apex .ua-password-control:focus-within .ua-password-icon,
.ua-register--apex .ua-register-input:focus-within .ua-register-input__icon,
.ua-register--apex .ua-password-control:focus-within .ua-password-icon,
.ua-forgot--apex .ua-forgot-input:focus-within .ua-forgot-input__icon,
.ua-reset--apex .ua-reset-input:focus-within .ua-reset-input__icon,
.ua-reset--apex .ua-password-control:focus-within .ua-password-icon,
.ua-confirm--apex .ua-confirm-input:focus-within .ua-confirm-input__icon,
.ua-confirm--apex .ua-password-control:focus-within .ua-password-icon {
    color: #0aa89b !important;
}

/* ---------------------------------------------------------
   6. Keep keyboard focus highly visible on actual actions.
   --------------------------------------------------------- */
body.ua-auth-body a:focus-visible,
body.ua-auth-body button:focus-visible {
    outline: 3px solid rgba(18, 184, 166, 0.22);
    outline-offset: 3px;
}

body.ua-auth-body button[type="submit"]:focus-visible,
body.ua-auth-body .ua-login-submit:focus-visible,
body.ua-auth-body .ua-register-submit:focus-visible,
body.ua-auth-body .ua-forgot-submit:focus-visible {
    outline-color: rgba(239, 35, 60, 0.25);
}

/* Keep custom checkboxes accessible without creating a giant frame. */
body.ua-auth-body input[type="checkbox"]:focus-visible,
body.ua-auth-body input[type="radio"]:focus-visible {
    outline: 2px solid rgba(18, 184, 166, 0.4);
    outline-offset: 3px;
}

/* Firefox autofill/focus consistency. */
body.ua-auth-body input:-moz-autofill {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -moz-text-fill-color: #0b1728 !important;
}

/* Reduced motion: focus should not jump. */
@media (prefers-reduced-motion: reduce) {
    .ua-login--apex .ua-input-control:focus-within,
    .ua-login--apex .ua-phone:focus-within .ua-phone-control,
    .ua-login--apex .ua-password-control:focus-within,
    .ua-register--apex .ua-register-input:focus-within,
    .ua-register--apex .ua-phone:focus-within .ua-phone-control,
    .ua-register--apex .ua-password-control:focus-within,
    .ua-register--apex .ua-role-select-shell:focus-within,
    .ua-forgot--apex .ua-forgot-input:focus-within,
    .ua-reset--apex .ua-reset-input:focus-within,
    .ua-reset--apex .ua-password-control:focus-within,
    .ua-confirm--apex .ua-confirm-input:focus-within,
    .ua-confirm--apex .ua-password-control:focus-within {
        transform: none;
    }
}

/* =========================================================
   RESET PASSWORD - VELOCITY APEX
   Premium password reset UI aligned with Login/Register/Forgot.
   Scoped to .ua-reset--velocity / .ua-reset--apex.
   ========================================================= */

/* ---------- Shared split-screen treatment ---------- */
body:has(.ua-reset--velocity) .ua-auth-hero__image {
    filter: saturate(1.17) brightness(1.09) contrast(1.035);
    transform: scale(1.016);
}

body:has(.ua-reset--velocity) .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 24, 0.75) 0%,
            rgba(6, 18, 33, 0.52) 36%,
            rgba(8, 25, 39, 0.21) 70%,
            rgba(10, 28, 40, 0.09) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 10, 21, 0.25) 0%,
            rgba(3, 10, 21, 0.025) 39%,
            rgba(4, 11, 23, 0.76) 100%
        );
}

body:has(.ua-reset--velocity) .ua-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 13% 18%,
            rgba(59, 130, 246, 0.15),
            transparent 29%
        ),
        radial-gradient(
            circle at 82% 16%,
            rgba(246, 183, 60, 0.13),
            transparent 24%
        ),
        radial-gradient(
            circle at 19% 79%,
            rgba(18, 184, 166, 0.18),
            transparent 30%
        );
    mix-blend-mode: screen;
}

body:has(.ua-reset--velocity) .ua-auth-hero__glow {
    left: -24%;
    bottom: -30%;
    width: 88%;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.48) 0%,
        rgba(255, 107, 95, 0.25) 27%,
        rgba(18, 184, 166, 0.1) 47%,
        rgba(239, 35, 60, 0) 70%
    );
    filter: blur(11px);
}

body:has(.ua-reset--velocity) .ua-auth-brand img {
    filter: drop-shadow(0 9px 24px rgba(0, 0, 0, 0.27))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

body:has(.ua-reset--apex) .ua-auth-panel {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 11% 13%,
            rgba(239, 35, 60, 0.085),
            transparent 25%
        ),
        radial-gradient(
            circle at 91% 18%,
            rgba(18, 184, 166, 0.1),
            transparent 26%
        ),
        radial-gradient(
            circle at 80% 86%,
            rgba(246, 183, 60, 0.075),
            transparent 25%
        ),
        linear-gradient(145deg, #fffdf9 0%, #ffffff 42%, #f4fffc 100%);
}

body:has(.ua-reset--apex) .ua-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(11, 23, 40, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 23, 40, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.42),
        transparent 72%
    );
}

body:has(.ua-reset--apex) .ua-auth-panel::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -180px;
    bottom: -150px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.08),
        rgba(18, 184, 166, 0.03) 46%,
        transparent 72%
    );
    pointer-events: none;
}

/* ---------- Page ---------- */
.ua-reset--apex {
    --ua-reset-red: #ef233c;
    --ua-reset-red-deep: #c91831;
    --ua-reset-coral: #ff6b5f;
    --ua-reset-teal: #12b8a6;
    --ua-reset-teal-deep: #087f76;
    --ua-reset-amber: #f6b73c;
    --ua-reset-blue: #3b82f6;
    --ua-reset-navy: #0b1728;
    --ua-reset-ink: #142033;
    --ua-reset-muted: #68778c;

    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 24px clamp(30px, 4.4vw, 72px) 22px;
    color: var(--ua-reset-ink);
    font-family:
        Inter, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
}

.ua-reset--apex .ua-reset__topbar {
    width: min(100%, 700px);
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ua-reset--apex .ua-reset__status-pill,
.ua-reset--apex .ua-reset__login-prompt {
    display: inline-flex;
    align-items: center;
}

.ua-reset--apex .ua-reset__status-pill {
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(18, 184, 166, 0.16);
    border-radius: 999px;
    background: rgba(239, 255, 251, 0.88);
    color: #197c74;
    box-shadow: 0 7px 18px rgba(18, 184, 166, 0.055);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.ua-reset--apex .ua-reset__status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ua-reset-teal);
    box-shadow:
        0 0 0 4px rgba(18, 184, 166, 0.1),
        0 0 14px rgba(18, 184, 166, 0.32);
}

.ua-reset--apex .ua-reset__login-prompt {
    gap: 8px;
    color: #59697d;
    font-size: 13px;
    font-weight: 560;
}

.ua-reset--apex .ua-reset__login-prompt a {
    color: var(--ua-reset-red);
    font-weight: 850;
    text-decoration: none;
}

.ua-reset--apex .ua-reset__login-prompt a:hover {
    color: var(--ua-reset-red-deep);
}

/* ---------- Main card ---------- */
.ua-reset--apex .ua-reset-card {
    position: relative;
    z-index: 1;
    width: min(100%, 700px);
    margin: clamp(18px, 3.2vh, 38px) auto clamp(16px, 2.5vh, 28px);
    padding: 30px clamp(26px, 3.2vw, 44px) 26px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 32px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.96),
        rgba(255, 255, 255, 0.875)
    );
    box-shadow:
        0 38px 90px rgba(11, 23, 40, 0.13),
        0 12px 34px rgba(239, 35, 60, 0.055),
        0 8px 28px rgba(18, 184, 166, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(26px) saturate(1.08);
    -webkit-backdrop-filter: blur(26px) saturate(1.08);
    overflow: visible;
}

.ua-reset--apex .ua-reset-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 0;
    height: 5px;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(
        115deg,
        rgba(239, 35, 60, 0.9) 0%,
        rgba(255, 107, 95, 0.84) 28%,
        rgba(246, 183, 60, 0.75) 50%,
        rgba(18, 184, 166, 0.8) 74%,
        rgba(59, 130, 246, 0.7) 100%
    );
}

.ua-reset--apex .ua-reset-card > *:not(.ua-reset-card__aurora) {
    position: relative;
    z-index: 2;
}

.ua-reset--apex .ua-reset-card__aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ua-reset--apex .ua-reset-card__aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.ua-reset--apex .ua-reset-card__aurora-red {
    width: 210px;
    height: 210px;
    top: -140px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(239, 35, 60, 0.13),
        transparent 68%
    );
}

.ua-reset--apex .ua-reset-card__aurora-teal {
    width: 190px;
    height: 190px;
    right: -100px;
    top: 34%;
    background: radial-gradient(
        circle,
        rgba(18, 184, 166, 0.12),
        transparent 68%
    );
}

.ua-reset--apex .ua-reset-card__aurora-amber {
    width: 170px;
    height: 170px;
    left: 28%;
    bottom: -110px;
    background: radial-gradient(
        circle,
        rgba(246, 183, 60, 0.1),
        transparent 68%
    );
}

/* ---------- Logo / heading ---------- */
.ua-reset--apex .ua-reset-logo {
    display: flex;
    width: fit-content;
    margin: 0 auto 17px;
    text-decoration: none;
}

.ua-reset--apex .ua-reset-logo img {
    display: block;
    width: clamp(205px, 19vw, 255px);
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(11, 23, 40, 0.1));
}

.ua-reset--apex .ua-reset-heading {
    text-align: center;
    margin-bottom: 22px;
}

.ua-reset--apex .ua-reset-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--ua-reset-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ua-reset--apex .ua-reset-heading__eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        var(--ua-reset-red),
        var(--ua-reset-amber)
    );
}

.ua-reset--apex .ua-reset-heading h1 {
    margin: 0;
    color: var(--ua-reset-navy);
    font-size: clamp(31px, 3.2vw, 43px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    font-weight: 820;
}

.ua-reset--apex .ua-reset-heading > p {
    max-width: 560px;
    margin: 10px auto 0;
    color: #63748a;
    font-size: 14px;
    line-height: 1.68;
    font-weight: 500;
}

.ua-reset--apex .ua-reset-heading__chips {
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ua-reset--apex .ua-reset-heading__chips > span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(239, 35, 60, 0.14);
    border-radius: 999px;
    background: rgba(255, 247, 248, 0.88);
    color: #a9273b;
    box-shadow: 0 6px 16px rgba(11, 23, 40, 0.035);
    font-size: 10.5px;
    font-weight: 800;
}

.ua-reset--apex .ua-reset-heading__chips > span:nth-child(2) {
    border-color: rgba(18, 184, 166, 0.17);
    background: rgba(241, 255, 252, 0.88);
    color: var(--ua-reset-teal-deep);
}

.ua-reset--apex .ua-reset-heading__chips > span:nth-child(3) {
    border-color: rgba(246, 183, 60, 0.2);
    background: rgba(255, 250, 236, 0.9);
    color: #9c6712;
}

.ua-reset--apex .ua-reset-heading__chips svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

/* ---------- Session status ---------- */
.ua-reset--apex .ua-reset-session-status:not(:empty) {
    margin: 0 0 15px;
    padding: 12px 14px;
    border: 1px solid rgba(18, 184, 166, 0.18);
    border-radius: 14px;
    background: rgba(239, 255, 251, 0.9);
    color: #146e67;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 650;
}

/* ---------- Form ---------- */
.ua-reset--apex .ua-reset-form {
    display: grid;
    gap: 17px;
}

.ua-reset--apex .ua-reset-field {
    min-width: 0;
}

.ua-reset--apex .ua-reset-field > label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--ua-reset-navy);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 760;
}

.ua-reset--apex .ua-reset-input {
    position: relative;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: stretch;
    border: 1px solid #dbe3ee;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(11, 23, 40, 0.018),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
    overflow: hidden;
}

.ua-reset--apex .ua-reset-input:hover {
    border-color: #cbd7e5;
    background: #ffffff;
}

.ua-reset--apex .ua-reset-input:focus-within {
    border-color: rgba(18, 184, 166, 0.88) !important;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(18, 184, 166, 0.1),
        0 12px 28px rgba(18, 184, 166, 0.07),
        0 7px 18px rgba(15, 23, 42, 0.035) !important;
    transform: translateY(-1px);
}

.ua-reset--apex .ua-reset-input.is-invalid {
    border-color: rgba(239, 35, 60, 0.66);
    background: rgba(255, 249, 250, 0.98);
    box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.055);
}

.ua-reset--apex .ua-reset-input.is-invalid:focus-within {
    border-color: var(--ua-reset-red) !important;
    box-shadow:
        0 0 0 3px rgba(239, 35, 60, 0.1),
        0 12px 26px rgba(239, 35, 60, 0.07) !important;
}

.ua-reset--apex .ua-reset-input__icon {
    width: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: #8a9aae;
    border-right: 1px solid #e8edf3;
    background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.ua-reset--apex .ua-reset-input__icon svg {
    width: 19px;
    height: 19px;
}

.ua-reset--apex .ua-reset-input:focus-within .ua-reset-input__icon {
    color: var(--ua-reset-teal);
    border-color: rgba(18, 184, 166, 0.14);
    background: linear-gradient(180deg, #f4fffd, #effcf9);
}

.ua-reset--apex .ua-reset-input input {
    min-width: 0;
    width: 100%;
    height: 56px;
    padding: 0 15px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--ua-reset-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 540;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.ua-reset--apex .ua-reset-input input::placeholder {
    color: #9ba9bb;
    opacity: 1;
    font-weight: 470;
}

.ua-reset--apex .ua-reset-input input:focus,
.ua-reset--apex .ua-reset-input input:focus-visible,
.ua-reset--apex .ua-reset-input input:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Chrome / Edge autofill stays inside the designed control */
.ua-reset--apex .ua-reset-input input:-webkit-autofill,
.ua-reset--apex .ua-reset-input input:-webkit-autofill:hover,
.ua-reset--apex .ua-reset-input input:-webkit-autofill:focus,
.ua-reset--apex .ua-reset-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--ua-reset-ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: var(--ua-reset-ink);
    transition: background-color 9999s ease-out 0s;
}

.ua-reset--apex .ua-reset-password-toggle {
    width: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #8b9aaf;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.ua-reset--apex .ua-reset-password-toggle:hover {
    color: var(--ua-reset-red);
    background: rgba(239, 35, 60, 0.045);
}

.ua-reset--apex .ua-reset-password-toggle:active {
    transform: scale(0.96);
}

.ua-reset--apex .ua-reset-password-toggle svg {
    width: 20px;
    height: 20px;
}

.ua-reset--apex .ua-reset-eye-closed {
    display: none;
}

.ua-reset--apex .ua-reset-password-toggle.is-visible .ua-reset-eye-open {
    display: none;
}

.ua-reset--apex .ua-reset-password-toggle.is-visible .ua-reset-eye-closed {
    display: block;
}

.ua-reset--apex .ua-field-error {
    margin: 6px 0 0;
    color: #d91f38;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

/* ---------- Account note ---------- */
.ua-reset--apex .ua-reset-account-note {
    margin-top: 9px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(244, 249, 255, 0.92),
        rgba(249, 252, 255, 0.94)
    );
}

.ua-reset--apex .ua-reset-account-note__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--ua-reset-blue);
}

.ua-reset--apex .ua-reset-account-note__icon svg {
    width: 16px;
    height: 16px;
}

.ua-reset--apex .ua-reset-account-note > span:last-child {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.ua-reset--apex .ua-reset-account-note strong {
    color: #274461;
    font-size: 11.5px;
    font-weight: 820;
}

.ua-reset--apex .ua-reset-account-note small {
    color: #71849b;
    font-size: 10.5px;
    line-height: 1.4;
    font-weight: 520;
}

/* ---------- Strength meter ---------- */
.ua-reset--apex .ua-reset-strength {
    margin-top: 10px;
    padding: 12px 13px 11px;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(250, 252, 255, 0.92),
        rgba(255, 255, 255, 0.96)
    );
}

.ua-reset--apex .ua-reset-strength__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ua-reset--apex .ua-reset-strength__top > span {
    color: #5f7085;
    font-size: 11px;
    font-weight: 700;
}

.ua-reset--apex .ua-reset-strength__top strong {
    color: #8795a8;
    font-size: 11px;
    font-weight: 850;
}

.ua-reset--apex .ua-reset-strength__bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.ua-reset--apex .ua-reset-strength__bars span {
    height: 5px;
    border-radius: 999px;
    background: #e8edf3;
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.ua-reset--apex
    .ua-reset-strength[data-score="1"]
    .ua-reset-strength__bars
    span:nth-child(-n + 1) {
    background: linear-gradient(90deg, #ef233c, #ff6b5f);
    box-shadow: 0 3px 10px rgba(239, 35, 60, 0.17);
}

.ua-reset--apex
    .ua-reset-strength[data-score="2"]
    .ua-reset-strength__bars
    span:nth-child(-n + 2) {
    background: linear-gradient(90deg, #f59e0b, #f6b73c);
    box-shadow: 0 3px 10px rgba(246, 183, 60, 0.18);
}

.ua-reset--apex
    .ua-reset-strength[data-score="3"]
    .ua-reset-strength__bars
    span:nth-child(-n + 3) {
    background: linear-gradient(90deg, #3b82f6, #12b8a6);
    box-shadow: 0 3px 10px rgba(18, 184, 166, 0.16);
}

.ua-reset--apex
    .ua-reset-strength[data-score="4"]
    .ua-reset-strength__bars
    span:nth-child(-n + 4) {
    background: linear-gradient(90deg, #0fae9d, #12b8a6, #3b82f6);
    box-shadow: 0 3px 11px rgba(18, 184, 166, 0.2);
}

.ua-reset--apex
    .ua-reset-strength[data-score="1"]
    .ua-reset-strength__top
    strong {
    color: #d91f38;
}

.ua-reset--apex
    .ua-reset-strength[data-score="2"]
    .ua-reset-strength__top
    strong {
    color: #ad7413;
}

.ua-reset--apex
    .ua-reset-strength[data-score="3"]
    .ua-reset-strength__top
    strong,
.ua-reset--apex
    .ua-reset-strength[data-score="4"]
    .ua-reset-strength__top
    strong {
    color: var(--ua-reset-teal-deep);
}

.ua-reset--apex .ua-reset-rules {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
}

.ua-reset--apex .ua-reset-rules > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7a899b;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 620;
    transition: color 0.18s ease;
}

.ua-reset--apex .ua-reset-rules i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d8e0e9;
    box-shadow: 0 0 0 3px rgba(216, 224, 233, 0.28);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ua-reset--apex .ua-reset-rules > span.is-met {
    color: #257c73;
}

.ua-reset--apex .ua-reset-rules > span.is-met i {
    background: var(--ua-reset-teal);
    box-shadow: 0 0 0 3px rgba(18, 184, 166, 0.12);
}

/* ---------- Match feedback ---------- */
.ua-reset--apex .ua-reset-match {
    min-height: 0;
    margin: 7px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 720;
}

.ua-reset--apex .ua-reset-match:empty {
    display: none;
}

.ua-reset--apex .ua-reset-match.is-match {
    color: var(--ua-reset-teal-deep);
}

.ua-reset--apex .ua-reset-match.is-match::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-right: 6px;
    border-radius: 50%;
    background: rgba(18, 184, 166, 0.1);
    color: var(--ua-reset-teal);
    font-size: 10px;
    font-weight: 900;
}

.ua-reset--apex .ua-reset-match.is-mismatch {
    color: #d91f38;
}

.ua-reset--apex .ua-reset-match.is-mismatch::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-right: 6px;
    border-radius: 50%;
    background: rgba(239, 35, 60, 0.09);
    color: var(--ua-reset-red);
    font-size: 10px;
    font-weight: 900;
}

/* ---------- CTA ---------- */
.ua-reset--apex .ua-reset-submit {
    position: relative;
    min-height: 58px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(
        100deg,
        var(--ua-reset-red-deep) 0%,
        var(--ua-reset-red) 42%,
        var(--ua-reset-coral) 100%
    );
    color: #fff;
    box-shadow:
        0 16px 30px rgba(239, 35, 60, 0.21),
        0 5px 14px rgba(239, 35, 60, 0.14);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.005em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.ua-reset--apex .ua-reset-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 0 38%,
        rgba(255, 255, 255, 0.24) 49%,
        transparent 60%
    );
    transform: translateX(-130%);
    transition: transform 0.65s ease;
}

.ua-reset--apex .ua-reset-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 38px rgba(239, 35, 60, 0.26),
        0 7px 18px rgba(239, 35, 60, 0.16);
    filter: saturate(1.04);
}

.ua-reset--apex .ua-reset-submit:hover::before {
    transform: translateX(130%);
}

.ua-reset--apex .ua-reset-submit:active {
    transform: translateY(0);
}

.ua-reset--apex .ua-reset-submit svg {
    width: 19px;
    height: 19px;
    transition: transform 0.2s ease;
}

.ua-reset--apex .ua-reset-submit:hover svg {
    transform: rotate(18deg);
}

/* ---------- Back link ---------- */
.ua-reset--apex .ua-reset-back {
    width: fit-content;
    margin: 14px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #68788d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 760;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.ua-reset--apex .ua-reset-back:hover {
    color: var(--ua-reset-red);
    transform: translateX(-2px);
}

.ua-reset--apex .ua-reset-back svg {
    width: 16px;
    height: 16px;
}

/* ---------- Protection panel ---------- */
.ua-reset--apex .ua-reset-help {
    margin-top: 18px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(18, 184, 166, 0.15);
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(240, 255, 252, 0.86),
        rgba(255, 251, 244, 0.88)
    );
}

.ua-reset--apex .ua-reset-help__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--ua-reset-teal), #19cbb8);
    box-shadow: 0 10px 20px rgba(18, 184, 166, 0.18);
}

.ua-reset--apex .ua-reset-help__icon svg {
    width: 20px;
    height: 20px;
}

.ua-reset--apex .ua-reset-help > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.ua-reset--apex .ua-reset-help strong {
    display: block;
    color: #244153;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 840;
}

.ua-reset--apex .ua-reset-help p {
    margin: 2px 0 0;
    color: #708194;
    font-size: 10.5px;
    line-height: 1.45;
    font-weight: 500;
}

.ua-reset--apex .ua-reset-help__badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid rgba(246, 183, 60, 0.21);
    border-radius: 999px;
    background: rgba(255, 249, 230, 0.92);
    color: #94620e;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Bottom tagline ---------- */
.ua-reset--apex .ua-reset-tagline {
    width: min(100%, 700px);
    margin: auto auto 0;
    padding-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #75859a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-reset--apex .ua-reset-tagline i {
    width: 24px;
    height: 6px;
    display: block;
    transform: skewX(-24deg);
    background: linear-gradient(
        90deg,
        var(--ua-reset-red),
        var(--ua-reset-coral)
    );
    border-radius: 2px;
}

.ua-reset--apex .ua-reset-tagline i:last-child {
    background: linear-gradient(
        90deg,
        var(--ua-reset-teal),
        var(--ua-reset-blue)
    );
}

/* ---------- Focus accessibility ---------- */
.ua-reset--apex a:focus-visible,
.ua-reset--apex button:focus-visible {
    outline: 3px solid rgba(18, 184, 166, 0.2);
    outline-offset: 3px;
}

.ua-reset--apex .ua-reset-input input:focus-visible {
    outline: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .ua-reset--apex {
        padding-inline: clamp(24px, 4vw, 44px);
    }

    .ua-reset--apex .ua-reset-card {
        width: min(100%, 660px);
        padding-inline: clamp(24px, 3vw, 38px);
    }
}

@media (max-width: 767.98px) {
    .ua-reset--apex {
        min-height: auto;
        padding: 18px 18px 22px;
    }

    .ua-reset--apex .ua-reset__topbar {
        width: 100%;
        align-items: center;
    }

    .ua-reset--apex .ua-reset__status-pill {
        display: none;
    }

    .ua-reset--apex .ua-reset__login-prompt {
        width: 100%;
        justify-content: flex-end;
        font-size: 12px;
    }

    .ua-reset--apex .ua-reset-card {
        width: 100%;
        margin: 18px auto 20px;
        padding: 25px 20px 22px;
        border-radius: 25px;
    }

    .ua-reset--apex .ua-reset-card::before {
        border-radius: 25px 25px 0 0;
    }

    .ua-reset--apex .ua-reset-logo img {
        width: 205px;
    }

    .ua-reset--apex .ua-reset-heading h1 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .ua-reset--apex .ua-reset-heading > p {
        font-size: 13.5px;
    }

    .ua-reset--apex .ua-reset-heading__chips {
        gap: 6px;
    }

    .ua-reset--apex .ua-reset-heading__chips > span {
        padding: 6px 9px;
        font-size: 9.5px;
    }

    .ua-reset--apex .ua-reset-rules {
        grid-template-columns: 1fr;
    }

    .ua-reset--apex .ua-reset-help {
        align-items: flex-start;
    }

    .ua-reset--apex .ua-reset-help__badge {
        display: none;
    }

    .ua-reset--apex .ua-reset-tagline {
        font-size: 8px;
        letter-spacing: 0.14em;
        gap: 8px;
    }

    .ua-reset--apex .ua-reset-tagline i {
        width: 18px;
    }
}

@media (max-width: 420px) {
    .ua-reset--apex {
        padding-inline: 12px;
    }

    .ua-reset--apex .ua-reset-card {
        padding-inline: 16px;
        border-radius: 21px;
    }

    .ua-reset--apex .ua-reset-input {
        min-height: 55px;
        border-radius: 13px;
    }

    .ua-reset--apex .ua-reset-input__icon {
        width: 48px;
        flex-basis: 48px;
    }

    .ua-reset--apex .ua-reset-input input {
        height: 53px;
        font-size: 14px;
        padding-inline: 13px;
    }

    .ua-reset--apex .ua-reset-password-toggle {
        width: 45px;
        flex-basis: 45px;
    }

    .ua-reset--apex .ua-reset-heading__chips > span:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ua-reset--apex .ua-reset-input,
    .ua-reset--apex .ua-reset-submit,
    .ua-reset--apex .ua-reset-submit::before,
    .ua-reset--apex .ua-reset-back,
    .ua-reset--apex .ua-reset-password-toggle {
        transition: none !important;
    }
}

/* =========================================================
   END RESET PASSWORD - VELOCITY APEX
   ========================================================= */

/* =========================================================
   CONFIRM PASSWORD - VELOCITY APEX
   Premium password confirmation UI aligned with the latest
   Login, Register, Forgot Password and Reset Password pages.
   Scoped to .ua-confirm--velocity / .ua-confirm--apex.
   ========================================================= */

/* ---------- Shared split-screen treatment ---------- */
body:has(.ua-confirm--velocity) .ua-auth-hero__image {
    filter: saturate(1.17) brightness(1.09) contrast(1.035);
    transform: scale(1.016);
}

body:has(.ua-confirm--velocity) .ua-auth-hero::after {
    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 31, 0.82) 0%,
            rgba(7, 17, 31, 0.51) 55%,
            rgba(7, 17, 31, 0.2) 100%
        ),
        linear-gradient(
            180deg,
            rgba(6, 16, 30, 0.12) 0%,
            rgba(6, 16, 30, 0.18) 48%,
            rgba(6, 16, 30, 0.56) 100%
        );
}

body:has(.ua-confirm--velocity) .ua-auth-panel {
    background:
        radial-gradient(
            circle at 95% 9%,
            rgba(255, 103, 90, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 87% 82%,
            rgba(11, 183, 170, 0.11),
            transparent 29%
        ),
        radial-gradient(
            circle at 9% 87%,
            rgba(255, 178, 54, 0.09),
            transparent 26%
        ),
        linear-gradient(145deg, #fffdfa 0%, #fffaf7 38%, #f9fffd 100%);
}

/* ---------- Main wrapper ---------- */
.ua-confirm--apex {
    --ua-confirm-red: var(--ua-v-red, #f2263d);
    --ua-confirm-red-deep: var(--ua-v-red-deep, #cf1430);
    --ua-confirm-coral: var(--ua-v-coral, #ff675a);
    --ua-confirm-amber: var(--ua-v-amber, #ffb236);
    --ua-confirm-teal: var(--ua-v-teal, #0bb7aa);
    --ua-confirm-blue: var(--ua-v-sky, #2f7cf6);
    --ua-confirm-navy: var(--ua-v-navy, #0b1728);
    --ua-confirm-muted: #65758b;
    --ua-confirm-border: #dce5ef;

    position: relative;
    width: min(100%, 780px);
    margin-inline: auto;
    padding: 28px 34px 30px;
    color: var(--ua-confirm-navy);
    font-family:
        Inter, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
}

.ua-confirm--apex::before,
.ua-confirm--apex::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(0.1px);
}

.ua-confirm--apex::before {
    width: 190px;
    height: 190px;
    top: 80px;
    right: -84px;
    background: radial-gradient(
        circle,
        rgba(255, 103, 90, 0.14),
        rgba(255, 103, 90, 0) 70%
    );
}

.ua-confirm--apex::after {
    width: 160px;
    height: 160px;
    bottom: 45px;
    left: -70px;
    background: radial-gradient(
        circle,
        rgba(11, 183, 170, 0.12),
        rgba(11, 183, 170, 0) 72%
    );
}

.ua-confirm--apex > * {
    position: relative;
    z-index: 1;
}

/* ---------- Top bar ---------- */
.ua-confirm--apex .ua-confirm__topbar {
    width: min(100%, 680px);
    margin: 0 auto 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    font-size: 12px;
    color: #6c7a8d;
}

.ua-confirm--apex .ua-confirm__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(11, 183, 170, 0.19);
    border-radius: 999px;
    background: rgba(236, 251, 248, 0.76);
    color: #087b72;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    box-shadow: 0 7px 18px rgba(11, 183, 170, 0.07);
}

.ua-confirm--apex .ua-confirm__status-pill i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--ua-confirm-teal);
    box-shadow: 0 0 0 5px rgba(11, 183, 170, 0.1);
}

.ua-confirm--apex .ua-confirm__home-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ua-confirm--apex .ua-confirm__home-prompt > span {
    color: #77859a;
}

.ua-confirm--apex .ua-confirm__home-prompt a {
    color: var(--ua-confirm-red-deep);
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.ua-confirm--apex .ua-confirm__home-prompt a:hover {
    color: var(--ua-confirm-red);
}

/* ---------- Main card ---------- */
.ua-confirm--apex .ua-confirm-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 680px);
    margin-inline: auto;
    padding: 31px 36px 28px;
    overflow: hidden;
    border: 1px solid rgba(218, 228, 239, 0.88);
    border-radius: 30px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.97),
        rgba(255, 253, 249, 0.94)
    );
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.1),
        0 9px 26px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(17px) saturate(1.08);
    -webkit-backdrop-filter: blur(17px) saturate(1.08);
}

.ua-confirm--apex .ua-confirm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--ua-confirm-red) 0%,
        var(--ua-confirm-coral) 30%,
        var(--ua-confirm-amber) 49%,
        var(--ua-confirm-teal) 72%,
        var(--ua-confirm-blue) 100%
    );
}

.ua-confirm--apex .ua-confirm-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 210px;
    height: 210px;
    top: -128px;
    right: -92px;
    border-radius: 50%;
    border: 28px solid rgba(255, 103, 90, 0.055);
}

.ua-confirm--apex .ua-confirm-card__aurora {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ua-confirm--apex .ua-confirm-card__aurora i {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.48;
}

.ua-confirm--apex .ua-confirm-card__aurora-red {
    width: 170px;
    height: 170px;
    top: -108px;
    left: -82px;
    background: radial-gradient(
        circle,
        rgba(242, 38, 61, 0.2),
        rgba(242, 38, 61, 0) 72%
    );
}

.ua-confirm--apex .ua-confirm-card__aurora-teal {
    width: 180px;
    height: 180px;
    right: -108px;
    bottom: 75px;
    background: radial-gradient(
        circle,
        rgba(11, 183, 170, 0.17),
        rgba(11, 183, 170, 0) 72%
    );
}

.ua-confirm--apex .ua-confirm-card__aurora-amber {
    width: 130px;
    height: 130px;
    right: 34%;
    bottom: -86px;
    background: radial-gradient(
        circle,
        rgba(255, 178, 54, 0.13),
        rgba(255, 178, 54, 0) 73%
    );
}

/* ---------- Logo ---------- */
.ua-confirm--apex .ua-confirm-logo {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ua-confirm--apex .ua-confirm-logo img {
    display: block;
    width: min(260px, 64vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 13px rgba(15, 23, 42, 0.1));
}

/* ---------- Heading ---------- */
.ua-confirm--apex .ua-confirm-heading {
    text-align: center;
    margin-bottom: 21px;
}

.ua-confirm--apex .ua-confirm-heading__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ua-confirm-red);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-confirm--apex .ua-confirm-heading__eyebrow::before {
    content: "";
    width: 27px;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--ua-confirm-red),
        var(--ua-confirm-amber)
    );
}

.ua-confirm--apex .ua-confirm-heading h1 {
    margin: 0;
    color: var(--ua-confirm-navy);
    font-size: clamp(32px, 3.4vw, 45px);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: -0.047em;
}

.ua-confirm--apex .ua-confirm-heading > p {
    max-width: 540px;
    margin: 10px auto 0;
    color: #66758a;
    font-size: 14px;
    line-height: 1.72;
    font-weight: 450;
}

.ua-confirm--apex .ua-confirm-heading__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.ua-confirm--apex .ua-confirm-heading__chips > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.78);
    color: #435066;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.ua-confirm--apex .ua-confirm-heading__chips > span:nth-child(1) {
    color: var(--ua-confirm-red-deep);
    border-color: rgba(242, 38, 61, 0.16);
    background: rgba(255, 244, 246, 0.84);
}

.ua-confirm--apex .ua-confirm-heading__chips > span:nth-child(2) {
    color: #087b72;
    border-color: rgba(11, 183, 170, 0.18);
    background: rgba(236, 251, 248, 0.84);
}

.ua-confirm--apex .ua-confirm-heading__chips > span:nth-child(3) {
    color: #966100;
    border-color: rgba(255, 178, 54, 0.2);
    background: rgba(255, 250, 237, 0.88);
}

.ua-confirm--apex .ua-confirm-heading__chips svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

/* ---------- Session status ---------- */
.ua-confirm--apex .ua-confirm-session-status {
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.55;
}

/* ---------- Security notice ---------- */
.ua-confirm--apex .ua-confirm-security {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 13px;
    border: 1px solid rgba(11, 183, 170, 0.15);
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(236, 251, 248, 0.88),
        rgba(255, 253, 247, 0.91)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.ua-confirm--apex .ua-confirm-security__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--ua-confirm-teal), #18caba);
    box-shadow: 0 9px 20px rgba(11, 183, 170, 0.2);
}

.ua-confirm--apex .ua-confirm-security__icon svg {
    width: 19px;
    height: 19px;
}

.ua-confirm--apex .ua-confirm-security__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ua-confirm--apex .ua-confirm-security__copy strong {
    color: #183147;
    font-size: 11.5px;
    font-weight: 800;
}

.ua-confirm--apex .ua-confirm-security__copy small {
    color: #6d7c8f;
    font-size: 10.5px;
    line-height: 1.48;
}

.ua-confirm--apex .ua-confirm-security__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 178, 54, 0.13);
    border: 1px solid rgba(255, 178, 54, 0.19);
    color: #976000;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ---------- Form ---------- */
.ua-confirm--apex .ua-confirm-form {
    display: grid;
    gap: 17px;
}

.ua-confirm--apex .ua-confirm-field {
    display: grid;
    gap: 8px;
}

.ua-confirm--apex .ua-confirm-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ua-confirm--apex .ua-confirm-label-row label {
    color: #1c2b3d;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 780;
}

.ua-confirm--apex .ua-confirm-label-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8492a4;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.ua-confirm--apex .ua-confirm-label-row > span svg {
    width: 12px;
    height: 12px;
    color: var(--ua-confirm-teal);
}

.ua-confirm--apex .ua-confirm-input {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 59px;
    overflow: hidden;
    border: 1px solid #d9e3ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.035);
}

.ua-confirm--apex .ua-confirm-input:hover {
    border-color: #c8d5e3;
    box-shadow: 0 9px 23px rgba(15, 23, 42, 0.045);
}

.ua-confirm--apex .ua-confirm-input:focus-within {
    border-color: rgba(11, 183, 170, 0.84) !important;
    background: #fff !important;
    box-shadow:
        0 0 0 3px rgba(11, 183, 170, 0.1),
        0 13px 30px rgba(11, 183, 170, 0.07) !important;
    transform: translateY(-1px);
}

.ua-confirm--apex .ua-confirm-input.is-invalid {
    border-color: rgba(242, 38, 61, 0.66);
    background: #fffafb;
}

.ua-confirm--apex .ua-confirm-input.is-invalid:focus-within {
    border-color: rgba(242, 38, 61, 0.8) !important;
    box-shadow:
        0 0 0 3px rgba(242, 38, 61, 0.08),
        0 12px 28px rgba(242, 38, 61, 0.06) !important;
}

.ua-confirm--apex .ua-confirm-input__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    flex: 0 0 54px;
    color: #91a0b2;
    border-right: 1px solid #e6edf4;
    background: linear-gradient(180deg, #fbfdff, #f7fafc);
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.ua-confirm--apex .ua-confirm-input__icon svg {
    width: 18px;
    height: 18px;
}

.ua-confirm--apex .ua-confirm-input:focus-within .ua-confirm-input__icon {
    color: var(--ua-confirm-teal) !important;
    background: linear-gradient(180deg, #f2fffc, #f7fffd);
}

.ua-confirm--apex .ua-confirm-input input {
    min-width: 0;
    width: 100%;
    height: 57px;
    padding: 0 14px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--ua-confirm-navy);
    font: inherit;
    font-size: 14.5px;
    line-height: 1;
    font-weight: 520;
}

.ua-confirm--apex .ua-confirm-input input::placeholder {
    color: #a3afbf;
    opacity: 1;
    font-weight: 450;
}

.ua-confirm--apex .ua-confirm-password-toggle {
    position: relative;
    width: 51px;
    flex: 0 0 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #edf1f5;
    background: transparent;
    color: #8d9bad;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.ua-confirm--apex .ua-confirm-password-toggle:hover {
    color: var(--ua-confirm-red);
    background: rgba(255, 244, 246, 0.8);
}

.ua-confirm--apex .ua-confirm-password-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.ua-confirm--apex .ua-confirm-eye-closed {
    opacity: 0;
    transform: scale(0.85);
}

.ua-confirm--apex .ua-confirm-password-toggle.is-visible .ua-confirm-eye-open {
    opacity: 0;
    transform: scale(0.85);
}

.ua-confirm--apex
    .ua-confirm-password-toggle.is-visible
    .ua-confirm-eye-closed {
    opacity: 1;
    transform: scale(1);
}

.ua-confirm--apex .ua-confirm-field-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding-inline: 2px;
    color: #78879a;
}

.ua-confirm--apex .ua-confirm-field-note > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    color: var(--ua-confirm-teal);
}

.ua-confirm--apex .ua-confirm-field-note svg {
    width: 13px;
    height: 13px;
}

.ua-confirm--apex .ua-confirm-field-note p {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.5;
}

/* ---------- Submit ---------- */
.ua-confirm--apex .ua-confirm-submit {
    position: relative;
    isolation: isolate;
    min-height: 57px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(
        100deg,
        var(--ua-confirm-red-deep) 0%,
        var(--ua-confirm-red) 47%,
        var(--ua-confirm-coral) 100%
    );
    box-shadow:
        0 16px 32px rgba(242, 38, 61, 0.22),
        0 6px 16px rgba(207, 20, 48, 0.12);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 820;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.ua-confirm--apex .ua-confirm-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        100deg,
        var(--ua-confirm-red) 0%,
        var(--ua-confirm-coral) 45%,
        #ff7a57 100%
    );
    opacity: 0;
    transition: opacity 0.22s ease;
}

.ua-confirm--apex .ua-confirm-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 38px rgba(242, 38, 61, 0.27),
        0 8px 20px rgba(207, 20, 48, 0.14);
}

.ua-confirm--apex .ua-confirm-submit:hover::before {
    opacity: 1;
}

.ua-confirm--apex .ua-confirm-submit:active {
    transform: translateY(0);
}

.ua-confirm--apex .ua-confirm-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.18s ease;
}

.ua-confirm--apex .ua-confirm-submit:hover svg {
    transform: translateX(3px);
}

/* ---------- Trust cards ---------- */
.ua-confirm--apex .ua-confirm-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.ua-confirm--apex .ua-confirm-trust > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.025);
}

.ua-confirm--apex .ua-confirm-trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
}

.ua-confirm--apex .ua-confirm-trust__icon svg {
    width: 16px;
    height: 16px;
}

.ua-confirm--apex .ua-confirm-trust__icon--teal {
    color: #087f75;
    background: rgba(11, 183, 170, 0.12);
}

.ua-confirm--apex .ua-confirm-trust__icon--amber {
    color: #986000;
    background: rgba(255, 178, 54, 0.14);
}

.ua-confirm--apex .ua-confirm-trust > span > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ua-confirm--apex .ua-confirm-trust strong {
    color: #25364a;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 800;
}

.ua-confirm--apex .ua-confirm-trust small {
    color: #7a899b;
    font-size: 9.3px;
    line-height: 1.35;
}

/* ---------- Help ---------- */
.ua-confirm--apex .ua-confirm-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 13px;
    padding: 12px 13px;
    border-radius: 15px;
    border: 1px solid rgba(47, 124, 246, 0.12);
    background: linear-gradient(
        135deg,
        rgba(243, 248, 255, 0.82),
        rgba(252, 254, 255, 0.88)
    );
}

.ua-confirm--apex .ua-confirm-help__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 10px;
    color: var(--ua-confirm-blue);
    background: rgba(47, 124, 246, 0.1);
}

.ua-confirm--apex .ua-confirm-help__icon svg {
    width: 16px;
    height: 16px;
}

.ua-confirm--apex .ua-confirm-help strong {
    display: block;
    margin-bottom: 2px;
    color: #2a3b50;
    font-size: 10.8px;
    font-weight: 800;
}

.ua-confirm--apex .ua-confirm-help p {
    margin: 0;
    color: #748296;
    font-size: 9.8px;
    line-height: 1.5;
}

/* ---------- Tagline ---------- */
.ua-confirm--apex .ua-confirm-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 18px auto 0;
    color: #78879a;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ua-confirm--apex .ua-confirm-tagline i {
    position: relative;
    width: 25px;
    height: 6px;
    transform: skewX(-30deg);
    background: linear-gradient(
        90deg,
        var(--ua-confirm-red),
        var(--ua-confirm-coral)
    );
}

.ua-confirm--apex .ua-confirm-tagline i:last-child {
    background: linear-gradient(
        90deg,
        var(--ua-confirm-teal),
        var(--ua-confirm-blue)
    );
}

/* ---------- Validation ---------- */
.ua-confirm--apex .ua-field-error {
    margin: 0;
    color: #d71932;
    font-size: 10.8px;
    line-height: 1.45;
    font-weight: 650;
}

/* ---------- Autofill/focus consistency ---------- */
.ua-confirm--apex .ua-confirm-input input,
.ua-confirm--apex .ua-confirm-input input:focus,
.ua-confirm--apex .ua-confirm-input input:focus-visible,
.ua-confirm--apex .ua-confirm-input input:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.ua-confirm--apex .ua-confirm-input input:-webkit-autofill,
.ua-confirm--apex .ua-confirm-input input:-webkit-autofill:hover,
.ua-confirm--apex .ua-confirm-input input:-webkit-autofill:focus,
.ua-confirm--apex .ua-confirm-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--ua-confirm-navy) !important;
    caret-color: var(--ua-confirm-navy);
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-out 0s;
}

.ua-confirm--apex .ua-confirm-submit:focus-visible {
    outline-color: rgba(242, 38, 61, 0.26) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .ua-confirm--apex {
        width: 100%;
        padding: 18px 16px 22px;
    }

    .ua-confirm--apex .ua-confirm__topbar {
        width: 100%;
        align-items: center;
    }

    .ua-confirm--apex .ua-confirm__status-pill {
        display: none;
    }

    .ua-confirm--apex .ua-confirm__home-prompt {
        width: 100%;
        justify-content: flex-end;
        font-size: 12px;
    }

    .ua-confirm--apex .ua-confirm-card {
        width: 100%;
        padding: 26px 20px 22px;
        border-radius: 25px;
    }

    .ua-confirm--apex .ua-confirm-card::before {
        border-radius: 25px 25px 0 0;
    }

    .ua-confirm--apex .ua-confirm-logo img {
        width: 205px;
    }

    .ua-confirm--apex .ua-confirm-heading h1 {
        font-size: clamp(29px, 9vw, 37px);
    }

    .ua-confirm--apex .ua-confirm-heading > p {
        font-size: 13.5px;
    }

    .ua-confirm--apex .ua-confirm-heading__chips {
        gap: 6px;
    }

    .ua-confirm--apex .ua-confirm-heading__chips > span {
        padding: 6px 9px;
        font-size: 9.5px;
    }

    .ua-confirm--apex .ua-confirm-security {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ua-confirm--apex .ua-confirm-security__badge {
        display: none;
    }

    .ua-confirm--apex .ua-confirm-trust {
        grid-template-columns: 1fr;
    }

    .ua-confirm--apex .ua-confirm-tagline {
        font-size: 8px;
        letter-spacing: 0.14em;
        gap: 8px;
    }

    .ua-confirm--apex .ua-confirm-tagline i {
        width: 18px;
    }
}

@media (max-width: 420px) {
    .ua-confirm--apex {
        padding-inline: 12px;
    }

    .ua-confirm--apex .ua-confirm-card {
        padding-inline: 16px;
        border-radius: 21px;
    }

    .ua-confirm--apex .ua-confirm-input {
        min-height: 55px;
        border-radius: 13px;
    }

    .ua-confirm--apex .ua-confirm-input__icon {
        width: 48px;
        flex-basis: 48px;
    }

    .ua-confirm--apex .ua-confirm-input input {
        height: 53px;
        font-size: 14px;
        padding-inline: 13px;
    }

    .ua-confirm--apex .ua-confirm-password-toggle {
        width: 45px;
        flex-basis: 45px;
    }

    .ua-confirm--apex .ua-confirm-heading__chips > span:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ua-confirm--apex .ua-confirm-input,
    .ua-confirm--apex .ua-confirm-submit,
    .ua-confirm--apex .ua-confirm-submit::before,
    .ua-confirm--apex .ua-confirm-password-toggle {
        transition: none !important;
    }
}

/* =========================================================
   END CONFIRM PASSWORD - VELOCITY APEX
   ========================================================= */

/* =========================================================
   UNIVAS AUTO - BRIGHT MARKETPLACE PALETTE + FIT TO SCREEN
   Final visual layer. Keeps the existing Apex structure while
   introducing the bright automotive palette selected for Univas Auto.

   Brand palette
   Red     #FF2D2D
   Blue    #2563FF
   Orange  #FF7A00
   Green   #16C47F
   Navy    #0F172A
   White   #F8FAFC
   Gray    #EEF2F7
   ========================================================= */

:root {
    --ua-red: #ff2d2d;
    --ua-red-2: #ff4747;
    --ua-red-dark: #d91f2b;
    --ua-red-soft: #fff1f2;
    --ua-blue: #2563ff;
    --ua-blue-soft: #edf3ff;
    --ua-orange: #ff7a00;
    --ua-orange-soft: #fff5e8;
    --ua-green: #16c47f;
    --ua-green-soft: #ebfff7;
    --ua-navy: #0f172a;
    --ua-ink: #0f172a;
    --ua-text: #334155;
    --ua-muted: #64748b;
    --ua-line: #d9e2ec;
    --ua-page: #f8fafc;
    --ua-soft-gray: #eef2f7;

    /* Compatibility with the existing Apex variables. */
    --ua-a-red: #ff2d2d;
    --ua-a-red-deep: #d91f2b;
    --ua-a-coral: #ff5a3d;
    --ua-a-teal: #16c47f;
    --ua-a-teal-deep: #079b61;
    --ua-a-amber: #ff7a00;
    --ua-a-blue: #2563ff;
    --ua-a-navy: #0f172a;
    --ua-a-muted: #64748b;
}

body.ua-auth-body {
    background: var(--ua-page);
    color: var(--ua-navy);
}

/* ---------- Split-screen canvas ---------- */
body.ua-auth-body .ua-auth-shell {
    background: #fff;
}

body.ua-auth-body .ua-auth-panel {
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(255, 45, 45, 0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 96% 80%,
            rgba(22, 196, 127, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 6% 93%,
            rgba(37, 99, 255, 0.11),
            transparent 27%
        ),
        radial-gradient(
            circle at 48% 6%,
            rgba(255, 122, 0, 0.055),
            transparent 23%
        ),
        linear-gradient(145deg, #ffffff 0%, #fbfdff 48%, #fffaf6 100%);
}

body.ua-auth-body .ua-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--ua-red) 0%,
        var(--ua-orange) 30%,
        var(--ua-green) 62%,
        var(--ua-blue) 100%
    );
    box-shadow: 0 7px 24px rgba(37, 99, 255, 0.08);
}

body.ua-auth-body .ua-auth-panel__accent--one {
    background: linear-gradient(
        180deg,
        rgba(255, 45, 45, 0.16),
        rgba(255, 122, 0, 0.025)
    );
}

body.ua-auth-body .ua-auth-panel__accent--two {
    background: linear-gradient(
        180deg,
        rgba(37, 99, 255, 0.12),
        rgba(22, 196, 127, 0.025)
    );
}

/* ---------- Brighter, premium automotive hero ---------- */
body.ua-auth-body .ua-auth-hero {
    background: #071323;
}

body.ua-auth-body .ua-auth-hero__image {
    filter: saturate(1.23) contrast(1.04) brightness(1.07);
}

body.ua-auth-body .ua-auth-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(7, 18, 37, 0.8) 0%,
            rgba(8, 25, 48, 0.57) 38%,
            rgba(16, 32, 53, 0.2) 72%,
            rgba(24, 30, 45, 0.06) 100%
        ),
        linear-gradient(
            180deg,
            rgba(37, 99, 255, 0.12) 0%,
            rgba(255, 122, 0, 0.025) 44%,
            rgba(8, 16, 32, 0.76) 100%
        );
}

body.ua-auth-body .ua-auth-hero__glow {
    left: -18%;
    bottom: -24%;
    width: 82%;
    background: radial-gradient(
        circle,
        rgba(255, 45, 45, 0.39) 0%,
        rgba(255, 122, 0, 0.16) 28%,
        rgba(37, 99, 255, 0.07) 50%,
        rgba(255, 45, 45, 0) 72%
    );
}

body.ua-auth-body .ua-auth-kicker {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(6, 19, 38, 0.48);
    box-shadow: 0 15px 34px rgba(2, 8, 23, 0.18);
}

body.ua-auth-body .ua-auth-kicker__dot {
    background: var(--ua-orange);
    box-shadow:
        0 0 0 5px rgba(255, 122, 0, 0.16),
        0 0 18px rgba(255, 122, 0, 0.38);
}

body.ua-auth-body .ua-auth-hero__title span {
    color: transparent;
    background: linear-gradient(92deg, #ff3b45 0%, #ff5a3d 47%, #ff8a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

body.ua-auth-body .ua-auth-benefit__icon {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.22);
}

body.ua-auth-body .ua-auth-benefit:nth-child(1) .ua-auth-benefit__icon {
    color: #fff;
    background: linear-gradient(145deg, #ff2d2d, #ff7a00);
}

body.ua-auth-body .ua-auth-benefit:nth-child(2) .ua-auth-benefit__icon {
    color: #fff;
    background: linear-gradient(145deg, #16c47f, #0ca77d);
}

body.ua-auth-body .ua-auth-benefit:nth-child(3) .ua-auth-benefit__icon {
    color: #fff;
    background: linear-gradient(145deg, #ff7a00, #ffb000);
}

body.ua-auth-body .ua-auth-benefit:nth-child(4) .ua-auth-benefit__icon {
    color: #fff;
    background: linear-gradient(145deg, #2563ff, #3b82f6);
}

body.ua-auth-body .ua-auth-hero__footer i:nth-of-type(1) {
    background: var(--ua-red);
    box-shadow: 0 0 0 4px rgba(255, 45, 45, 0.12);
}

body.ua-auth-body .ua-auth-hero__footer i:nth-of-type(2) {
    background: var(--ua-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

body.ua-auth-body .ua-auth-hero__footer i:nth-of-type(3) {
    background: var(--ua-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.12);
}

/* ---------- Shared Apex card treatment ---------- */
body.ua-auth-body
    :is(
        .ua-login--apex .ua-login-card,
        .ua-register--apex .ua-register-card,
        .ua-forgot--apex .ua-forgot-card,
        .ua-reset--apex .ua-reset-card,
        .ua-confirm--apex .ua-confirm-card,
        .ua-system-auth__card
    ) {
    border-color: rgba(217, 226, 236, 0.92);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.985),
        rgba(248, 250, 252, 0.955)
    );
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.1),
        0 10px 28px rgba(37, 99, 255, 0.045),
        0 7px 24px rgba(255, 45, 45, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.ua-auth-body
    :is(
        .ua-login--apex .ua-login-card,
        .ua-register--apex .ua-register-card,
        .ua-forgot--apex .ua-forgot-card,
        .ua-reset--apex .ua-reset-card,
        .ua-confirm--apex .ua-confirm-card
    )::before {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--ua-red) 0%,
        var(--ua-orange) 32%,
        var(--ua-green) 62%,
        var(--ua-blue) 100%
    );
}

/* ---------- Colorful aurora accents ---------- */
body.ua-auth-body
    :is(
        .ua-login-card__aurora-red,
        .ua-register-card__aurora-red,
        .ua-forgot-card__aurora-red,
        .ua-reset-card__aurora-red,
        .ua-confirm-card__aurora-red
    ) {
    background: radial-gradient(
        circle,
        rgba(255, 45, 45, 0.14),
        transparent 68%
    );
}

body.ua-auth-body
    :is(
        .ua-login-card__aurora-teal,
        .ua-register-card__aurora-teal,
        .ua-forgot-card__aurora-teal,
        .ua-reset-card__aurora-teal,
        .ua-confirm-card__aurora-teal
    ) {
    background: radial-gradient(
        circle,
        rgba(37, 99, 255, 0.12),
        transparent 68%
    );
}

body.ua-auth-body
    :is(
        .ua-login-card__aurora-amber,
        .ua-register-card__aurora-amber,
        .ua-forgot-card__aurora-amber,
        .ua-reset-card__aurora-amber,
        .ua-confirm-card__aurora-amber
    ) {
    background: radial-gradient(
        circle,
        rgba(255, 122, 0, 0.12),
        transparent 68%
    );
}

/* ---------- Status pills: trust/safety uses green ---------- */
body.ua-auth-body
    :is(
        .ua-login--apex .ua-login__status-pill,
        .ua-register--apex .ua-register__status-pill,
        .ua-forgot--apex .ua-forgot__status-pill,
        .ua-reset--apex .ua-reset__status-pill,
        .ua-confirm--apex .ua-confirm__status-pill
    ) {
    border-color: rgba(22, 196, 127, 0.2);
    background: rgba(235, 255, 247, 0.92);
    color: #087b52;
    box-shadow: 0 8px 22px rgba(22, 196, 127, 0.075);
}

body.ua-auth-body
    :is(
        .ua-login--apex .ua-login__status-pill i,
        .ua-register--apex .ua-register__status-pill i,
        .ua-forgot--apex .ua-forgot__status-pill i,
        .ua-reset--apex .ua-reset__status-pill i,
        .ua-confirm--apex .ua-confirm__status-pill i
    ) {
    background: var(--ua-green);
    box-shadow:
        0 0 0 4px rgba(22, 196, 127, 0.12),
        0 0 15px rgba(22, 196, 127, 0.34);
}

/* ---------- Headings and useful accents ---------- */
body.ua-auth-body
    :is(
        .ua-login-heading__eyebrow,
        .ua-register-heading__eyebrow,
        .ua-forgot-heading__eyebrow,
        .ua-reset-heading__eyebrow,
        .ua-confirm-heading__eyebrow
    ) {
    color: var(--ua-red);
}

body.ua-auth-body
    :is(
        .ua-login-heading__eyebrow,
        .ua-register-heading__eyebrow,
        .ua-forgot-heading__eyebrow,
        .ua-reset-heading__eyebrow,
        .ua-confirm-heading__eyebrow
    )::before {
    background: linear-gradient(90deg, var(--ua-red), var(--ua-orange));
}

body.ua-auth-body
    :is(
        .ua-login-heading h1,
        .ua-register-heading h1,
        .ua-forgot-heading h1,
        .ua-reset-heading h1,
        .ua-confirm-heading h1
    ) {
    color: var(--ua-navy);
}

/* ---------- Fields: blue for interaction, green for success ---------- */
body.ua-auth-body
    :is(
        .ua-login--apex .ua-phone-control,
        .ua-login--apex .ua-password-control,
        .ua-register--apex .ua-register-input,
        .ua-register--apex .ua-phone-control,
        .ua-register--apex .ua-password-control,
        .ua-role-select-shell,
        .ua-forgot--apex .ua-forgot-input,
        .ua-reset--apex .ua-reset-input,
        .ua-reset--apex .ua-password-control,
        .ua-confirm--apex .ua-confirm-input,
        .ua-confirm--apex .ua-password-control
    ) {
    border-color: var(--ua-line);
    background: rgba(255, 255, 255, 0.97);
}

body.ua-auth-body
    :is(
        .ua-login--apex .ua-phone:focus-within .ua-phone-control,
        .ua-login--apex .ua-password-control:focus-within,
        .ua-register--apex .ua-register-input:focus-within,
        .ua-register--apex .ua-phone:focus-within .ua-phone-control,
        .ua-register--apex .ua-password-control:focus-within,
        .ua-role-select-shell:focus-within,
        .ua-forgot--apex .ua-forgot-input:focus-within,
        .ua-reset--apex .ua-reset-input:focus-within,
        .ua-reset--apex .ua-password-control:focus-within,
        .ua-confirm--apex .ua-confirm-input:focus-within,
        .ua-confirm--apex .ua-password-control:focus-within
    ) {
    border-color: rgba(37, 99, 255, 0.78) !important;
    box-shadow:
        0 0 0 3px rgba(37, 99, 255, 0.11),
        0 10px 26px rgba(37, 99, 255, 0.06) !important;
    transform: translateY(-1px);
}

body.ua-auth-body
    :is(
        .ua-register-input:focus-within .ua-register-input__icon,
        .ua-login--apex .ua-password-control:focus-within .ua-password-icon,
        .ua-register--apex .ua-password-control:focus-within .ua-password-icon,
        .ua-role-select-shell:focus-within .ua-role-select__icon,
        .ua-role-select-shell:focus-within .ua-role-select__chevron
    ) {
    color: var(--ua-blue);
}

/* ---------- Registration role styling ---------- */
body.ua-auth-body .ua-role-select-shell::before {
    background: linear-gradient(180deg, var(--ua-red), var(--ua-orange));
}

body.ua-auth-body .ua-role-context[data-role="buyer"] {
    border-color: rgba(37, 99, 255, 0.18);
    background: linear-gradient(
        110deg,
        rgba(237, 243, 255, 0.95),
        rgba(255, 255, 255, 0.94)
    );
}

body.ua-auth-body .ua-role-context[data-role="buyer"] .ua-role-context__mark {
    background: linear-gradient(145deg, var(--ua-blue), #54a3ff);
    box-shadow:
        0 0 0 5px rgba(37, 99, 255, 0.08),
        0 7px 16px rgba(37, 99, 255, 0.16);
}

body.ua-auth-body .ua-role-context[data-role="private_seller"] {
    border-color: rgba(255, 122, 0, 0.2);
    background: linear-gradient(
        110deg,
        rgba(255, 245, 232, 0.95),
        rgba(255, 255, 255, 0.94)
    );
}

body.ua-auth-body .ua-role-context[data-role="private_seller"] .ua-role-context__mark {
    background: linear-gradient(145deg, var(--ua-orange), #ffad24);
    box-shadow:
        0 0 0 5px rgba(255, 122, 0, 0.09),
        0 7px 16px rgba(255, 122, 0, 0.17);
}

body.ua-auth-body .ua-role-context[data-role="dealer"] {
    border-color: rgba(22, 196, 127, 0.19);
    background: linear-gradient(
        110deg,
        rgba(235, 255, 247, 0.96),
        rgba(255, 255, 255, 0.94)
    );
}

body.ua-auth-body .ua-role-context[data-role="dealer"] .ua-role-context__mark {
    background: linear-gradient(145deg, var(--ua-green), #28d99a);
    box-shadow:
        0 0 0 5px rgba(22, 196, 127, 0.09),
        0 7px 16px rgba(22, 196, 127, 0.17);
}

/* ---------- Chips use the full palette ---------- */
body.ua-auth-body
    :is(.ua-login-heading__chips, .ua-register-heading__chips)
    span:nth-child(1) {
    border-color: rgba(255, 45, 45, 0.19);
    background: #fff7f7;
    color: #d62532;
}

body.ua-auth-body
    :is(.ua-login-heading__chips, .ua-register-heading__chips)
    span:nth-child(2) {
    border-color: rgba(22, 196, 127, 0.21);
    background: #f1fff9;
    color: #078158;
}

body.ua-auth-body
    :is(.ua-login-heading__chips, .ua-register-heading__chips)
    span:nth-child(3) {
    border-color: rgba(255, 122, 0, 0.22);
    background: #fff9ef;
    color: #ad5900;
}

/* ---------- Primary actions: bright red -> orange ---------- */
body.ua-auth-body
    :is(
        .ua-login-submit,
        .ua-register-submit,
        .ua-forgot-submit,
        .ua-reset-submit,
        .ua-confirm-submit
    ) {
    color: #fff;
    border: 0;
    background: linear-gradient(
        100deg,
        #ff2938 0%,
        #ff3942 33%,
        #ff5940 66%,
        #ff7a00 100%
    ) !important;
    box-shadow:
        0 16px 32px rgba(255, 45, 45, 0.22),
        0 7px 18px rgba(255, 122, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.27) !important;
}

body.ua-auth-body
    :is(
        .ua-login-submit,
        .ua-register-submit,
        .ua-forgot-submit,
        .ua-reset-submit,
        .ua-confirm-submit
    ):hover {
    transform: translateY(-2px);
    filter: saturate(1.06) brightness(1.02);
    box-shadow:
        0 20px 38px rgba(255, 45, 45, 0.25),
        0 9px 20px rgba(255, 122, 0, 0.16) !important;
}

/* ---------- Phone picker ---------- */
body.ua-auth-body .ua-phone-option:hover {
    background: var(--ua-blue-soft);
}

body.ua-auth-body .ua-phone-option.is-active {
    background: linear-gradient(
        90deg,
        var(--ua-blue-soft),
        var(--ua-green-soft)
    );
}

body.ua-auth-body .ua-phone-option.is-active .ua-phone-option__dial {
    color: var(--ua-blue);
}

/* ---------- Password strength ---------- */
body.ua-auth-body .ua-register--apex .ua-password-strength {
    border-color: rgba(37, 99, 255, 0.12);
    background: linear-gradient(
        110deg,
        rgba(237, 243, 255, 0.7),
        rgba(235, 255, 247, 0.62),
        rgba(255, 245, 232, 0.62)
    );
}

/* ---------- Secondary links ---------- */
body.ua-auth-body
    :is(
        .ua-login__register-prompt a,
        .ua-register__login-prompt a,
        .ua-forgot__login-prompt a,
        .ua-reset__login-prompt a,
        .ua-confirm__home-prompt a,
        .ua-field-link
    ) {
    color: var(--ua-red);
}

body.ua-auth-body
    :is(
        .ua-login__register-prompt a,
        .ua-register__login-prompt a,
        .ua-forgot__login-prompt a,
        .ua-reset__login-prompt a,
        .ua-confirm__home-prompt a,
        .ua-field-link
    ):hover {
    color: var(--ua-orange);
}

/* ---------- Keep native focus ring out of styled controls ---------- */
body.ua-auth-body input:not([type="checkbox"]):not([type="radio"]),
body.ua-auth-body select,
body.ua-auth-body textarea {
    outline: 0 !important;
    box-shadow: none !important;
}

body.ua-auth-body :is(a, button, [role="button"]):focus-visible {
    outline: 3px solid rgba(37, 99, 255, 0.22);
    outline-offset: 3px;
}

/* =========================================================
   FIT-TO-SCREEN DESKTOP AUTHENTICATION
   Desktop pages are intentionally one viewport tall. The mobile
   experience remains naturally scrollable for accessibility.
   ========================================================= */

@media (min-width: 1025px) and (min-height: 680px) {
    html:has(body.ua-auth-fit-screen),
    body.ua-auth-body.ua-auth-fit-screen {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    body.ua-auth-fit-screen .ua-auth-page,
    body.ua-auth-fit-screen .ua-auth-shell,
    body.ua-auth-fit-screen .ua-auth-hero,
    body.ua-auth-fit-screen .ua-auth-panel,
    body.ua-auth-fit-screen .ua-auth-panel__slot {
        height: 100dvh;
        min-height: 0;
    }

    body.ua-auth-fit-screen .ua-auth-shell {
        grid-template-columns: minmax(0, 1.03fr) minmax(610px, 0.97fr);
        overflow: hidden;
    }

    body.ua-auth-fit-screen .ua-auth-hero,
    body.ua-auth-fit-screen .ua-auth-panel,
    body.ua-auth-fit-screen .ua-auth-panel__slot {
        overflow: hidden;
    }

    body.ua-auth-fit-screen .ua-auth-hero__content {
        width: min(100% - 68px, 760px);
        height: 100%;
        min-height: 0;
        padding: clamp(22px, 3vh, 36px) 0 clamp(18px, 2.4vh, 30px);
    }

    body.ua-auth-fit-screen .ua-auth-brand img {
        width: clamp(180px, 18vw, 270px);
        max-height: 74px;
    }

    body.ua-auth-fit-screen .ua-auth-hero__copy {
        margin-top: clamp(34px, 6.5vh, 78px);
    }

    body.ua-auth-fit-screen .ua-auth-kicker {
        padding: 7px 12px;
        font-size: 10px;
    }

    body.ua-auth-fit-screen .ua-auth-hero__title {
        margin: 18px 0 12px;
        font-size: clamp(42px, 3.7vw, 66px);
    }

    body.ua-auth-fit-screen .ua-auth-hero__description {
        max-width: 590px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    body.ua-auth-fit-screen .ua-auth-benefits {
        gap: 11px;
        margin-top: 22px;
    }

    body.ua-auth-fit-screen .ua-auth-benefit {
        gap: 8px;
    }

    body.ua-auth-fit-screen .ua-auth-benefit__icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    body.ua-auth-fit-screen .ua-auth-benefit strong {
        font-size: 11px;
    }

    body.ua-auth-fit-screen .ua-auth-benefit small {
        font-size: 9.5px;
        line-height: 1.3;
    }

    body.ua-auth-fit-screen .ua-auth-hero__footer {
        margin-top: auto;
        padding-top: 14px;
    }

    body.ua-auth-fit-screen .ua-auth-panel__slot {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login--apex,
            .ua-register--apex,
            .ua-forgot--apex,
            .ua-reset--apex,
            .ua-confirm--apex
        ) {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        padding: 10px clamp(24px, 3vw, 46px) 9px !important;
        overflow: visible;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login__topbar,
            .ua-register__topbar,
            .ua-forgot__topbar,
            .ua-reset__topbar,
            .ua-confirm__topbar
        ) {
        width: min(100%, 760px);
        min-height: 28px !important;
        margin-inline: auto;
        flex: 0 0 auto;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-card,
            .ua-register-card,
            .ua-forgot-card,
            .ua-reset-card,
            .ua-confirm-card
        ) {
        width: min(100%, 760px) !important;
        margin: 7px auto 5px !important;
        padding: 17px 25px 15px !important;
        border-radius: 24px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-logo,
            .ua-register-logo,
            .ua-forgot-logo,
            .ua-reset-logo,
            .ua-confirm-logo
        ) {
        margin-bottom: 7px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-logo img,
            .ua-register-logo img,
            .ua-forgot-logo img,
            .ua-reset-logo img,
            .ua-confirm-logo img
        ) {
        width: clamp(122px, 11vw, 176px) !important;
        max-height: 56px !important;
        object-fit: contain;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-heading,
            .ua-register-heading,
            .ua-forgot-heading,
            .ua-reset-heading,
            .ua-confirm-heading
        ) {
        margin-bottom: 10px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-heading__eyebrow,
            .ua-register-heading__eyebrow,
            .ua-forgot-heading__eyebrow,
            .ua-reset-heading__eyebrow,
            .ua-confirm-heading__eyebrow
        ) {
        margin-bottom: 4px !important;
        font-size: 9.5px !important;
        letter-spacing: 0.13em;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-heading h1,
            .ua-register-heading h1,
            .ua-forgot-heading h1,
            .ua-reset-heading h1,
            .ua-confirm-heading h1
        ) {
        font-size: clamp(29px, 2.2vw, 39px) !important;
        line-height: 1.02 !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-heading p,
            .ua-register-heading p,
            .ua-forgot-heading p,
            .ua-reset-heading p,
            .ua-confirm-heading p
        ) {
        margin-top: 5px !important;
        font-size: 12px !important;
        line-height: 1.42 !important;
    }

    body.ua-auth-fit-screen
        :is(.ua-login-heading__chips, .ua-register-heading__chips) {
        gap: 6px;
        margin-top: 8px !important;
    }

    body.ua-auth-fit-screen
        :is(.ua-login-heading__chips span, .ua-register-heading__chips span) {
        min-height: 25px;
        padding: 5px 8px;
        font-size: 9.5px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-form,
            .ua-register-form,
            .ua-forgot-form,
            .ua-reset-form,
            .ua-confirm-form
        ) {
        gap: 9px !important;
    }

    body.ua-auth-fit-screen .ua-register-grid {
        gap: 8px 10px !important;
    }

    body.ua-auth-fit-screen
        :is(.ua-field-label, .ua-field-label-row .ua-field-label) {
        margin-bottom: 4px !important;
        font-size: 11px !important;
        line-height: 1.2;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-register-input,
            .ua-phone-control,
            .ua-password-control,
            .ua-role-select-shell,
            .ua-forgot-input,
            .ua-reset-input,
            .ua-confirm-input
        ) {
        min-height: 43px !important;
        border-radius: 12px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-register-input input,
            .ua-phone-input,
            .ua-password-input,
            .ua-role-select-shell select,
            .ua-forgot-input input,
            .ua-reset-input input,
            .ua-confirm-input input
        ) {
        height: 42px !important;
        min-height: 42px !important;
        font-size: 12.5px !important;
    }

    body.ua-auth-fit-screen .ua-role-select-shell {
        grid-template-columns: 43px minmax(0, 1fr) 40px !important;
    }

    body.ua-auth-fit-screen
        :is(.ua-role-select__icon, .ua-role-select__chevron) {
        width: 100% !important;
        height: 42px !important;
    }

    body.ua-auth-fit-screen .ua-role-context {
        min-height: 36px;
        margin-top: 5px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 10px;
    }

    body.ua-auth-fit-screen .ua-role-context__mark {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }

    body.ua-auth-fit-screen .ua-role-context strong {
        margin-bottom: 0;
        font-size: 10px;
    }

    body.ua-auth-fit-screen .ua-role-context small {
        font-size: 9px;
        line-height: 1.25;
    }

    body.ua-auth-fit-screen .ua-register-hint,
    body.ua-auth-fit-screen .ua-field-error {
        margin-top: 3px !important;
        font-size: 9px !important;
        line-height: 1.22 !important;
    }

    body.ua-auth-fit-screen .ua-password-strength {
        margin-top: 0 !important;
        padding: 6px 9px !important;
        border-radius: 10px !important;
    }

    body.ua-auth-fit-screen .ua-password-strength__top,
    body.ua-auth-fit-screen .ua-password-strength__top strong {
        font-size: 9.5px !important;
    }

    body.ua-auth-fit-screen .ua-password-strength__bars {
        margin-top: 4px !important;
    }

    body.ua-auth-fit-screen .ua-password-strength p {
        margin: 4px 0 0 !important;
        font-size: 8.5px !important;
        line-height: 1.2 !important;
    }

    body.ua-auth-fit-screen .ua-register-terms {
        min-height: 32px;
        padding: 6px 9px !important;
        border-radius: 10px !important;
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-submit,
            .ua-register-submit,
            .ua-forgot-submit,
            .ua-reset-submit,
            .ua-confirm-submit
        ) {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 12.5px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-trust,
            .ua-register-trust,
            .ua-forgot-trust,
            .ua-reset-trust,
            .ua-confirm-trust,
            .ua-secure-note
        ) {
        margin-top: 7px !important;
        font-size: 9.5px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-login-tagline,
            .ua-register-tagline,
            .ua-forgot-tagline,
            .ua-reset-tagline,
            .ua-confirm-tagline
        ) {
        margin-top: 0 !important;
        padding-top: 2px !important;
        font-size: 8px !important;
        flex: 0 0 auto;
    }

    /* Utility Fortify pages */
    body.ua-auth-fit-screen .ua-system-auth {
        width: min(100% - 48px, 620px);
        margin: auto;
    }

    body.ua-auth-fit-screen .ua-system-auth__card {
        padding: 24px;
        border: 1px solid var(--ua-line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
    }
}

/* ---------- Short desktop screens: preserve all form fields ---------- */
@media (min-width: 1025px) and (max-height: 820px) {
    body.ua-auth-fit-screen .ua-auth-hero__copy {
        margin-top: 27px;
    }

    body.ua-auth-fit-screen .ua-auth-hero__title {
        margin: 13px 0 8px;
        font-size: clamp(37px, 3.3vw, 54px);
    }

    body.ua-auth-fit-screen .ua-auth-hero__description {
        font-size: 13px;
        line-height: 1.42;
    }

    body.ua-auth-fit-screen .ua-auth-benefits {
        margin-top: 15px;
    }

    body.ua-auth-fit-screen .ua-register-logo,
    body.ua-auth-fit-screen .ua-login-logo,
    body.ua-auth-fit-screen .ua-forgot-logo,
    body.ua-auth-fit-screen .ua-reset-logo,
    body.ua-auth-fit-screen .ua-confirm-logo {
        margin-bottom: 3px !important;
    }

    body.ua-auth-fit-screen
        :is(
            .ua-register-logo img,
            .ua-login-logo img,
            .ua-forgot-logo img,
            .ua-reset-logo img,
            .ua-confirm-logo img
        ) {
        width: 110px !important;
        max-height: 42px !important;
    }

    body.ua-auth-fit-screen
        :is(.ua-login-heading__chips, .ua-register-heading__chips) {
        margin-top: 5px !important;
    }

    body.ua-auth-fit-screen .ua-register-card {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
    }

    body.ua-auth-fit-screen .ua-register-heading {
        margin-bottom: 7px !important;
    }

    body.ua-auth-fit-screen .ua-register-heading h1 {
        font-size: 28px !important;
    }

    body.ua-auth-fit-screen .ua-register-heading p {
        font-size: 10.5px !important;
        line-height: 1.32 !important;
    }

    body.ua-auth-fit-screen .ua-register-heading__chips span {
        min-height: 22px;
        padding: 4px 7px;
        font-size: 8.5px !important;
    }

    body.ua-auth-fit-screen .ua-register-form {
        gap: 6px !important;
    }

    body.ua-auth-fit-screen .ua-register-grid {
        gap: 6px 9px !important;
    }

    body.ua-auth-fit-screen .ua-register-terms {
        min-height: 27px;
        padding: 4px 8px !important;
    }

    body.ua-auth-fit-screen .ua-register-trust,
    body.ua-auth-fit-screen .ua-register-tagline {
        display: none !important;
    }
}

@media (min-width: 1025px) and (max-height: 735px) {
    /* At laptop heights, prioritize the actual form over decorative content. */
    body.ua-auth-fit-screen .ua-register-logo,
    body.ua-auth-fit-screen .ua-register-heading__chips,
    body.ua-auth-fit-screen .ua-password-strength p,
    body.ua-auth-fit-screen .ua-login-heading__chips {
        display: none !important;
    }

    body.ua-auth-fit-screen .ua-register-heading h1 {
        font-size: 25px !important;
    }

    body.ua-auth-fit-screen .ua-role-context {
        min-height: 30px;
        padding-block: 4px;
    }

    body.ua-auth-fit-screen .ua-role-context small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- Mobile/tablet: allow natural scrolling and keep touch targets ---------- */
@media (max-width: 1024px), (max-height: 679px) {
    html:has(body.ua-auth-fit-screen),
    body.ua-auth-body.ua-auth-fit-screen {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.ua-auth-fit-screen .ua-auth-page,
    body.ua-auth-fit-screen .ua-auth-shell,
    body.ua-auth-fit-screen .ua-auth-panel,
    body.ua-auth-fit-screen .ua-auth-panel__slot {
        height: auto;
        min-height: 100svh;
        overflow: visible;
    }
}

/* =========================================================
   END BRIGHT MARKETPLACE + FIT TO SCREEN
   ========================================================= */

/* =========================================================
   LOGIN TOP CARD CONSISTENCY FIX
   Keeps login visually identical to the other Apex auth pages.

   Why this exists:
   The login card still inherits the older Velocity ::before
   border-mask implementation. The other Apex auth cards use a
   dedicated top accent strip. Reset the login pseudo-element so
   the colored strip, rounded top corners and card header render
   consistently on login as they do on register/reset/forgot pages.
   ========================================================= */
body.ua-auth-body .ua-login--apex .ua-login-card {
    overflow: visible;
    isolation: isolate;
}

body.ua-auth-body .ua-login--apex .ua-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 2;
    width: auto;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(
        90deg,
        var(--ua-red) 0%,
        var(--ua-orange) 32%,
        var(--ua-green) 62%,
        var(--ua-blue) 100%
    );
    -webkit-mask: none;
    mask: none;
    -webkit-mask-composite: initial;
    mask-composite: initial;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(37, 99, 255, 0.06);
}

/* Keep the card header content above decorative aurora layers. */
body.ua-auth-body .ua-login--apex .ua-login-logo,
body.ua-auth-body .ua-login--apex .ua-login-heading,
body.ua-auth-body .ua-login--apex .ua-login-form,
body.ua-auth-body .ua-login--apex .ua-login-trust,
body.ua-auth-body .ua-login--apex .ua-login-tagline {
    position: relative;
    z-index: 3;
}

/* Make login's top row and card use one visual column, matching register. */
@media (min-width: 1025px) {
    body.ua-auth-fit-screen .ua-login--apex .ua-login__topbar,
    body.ua-auth-fit-screen .ua-login--apex .ua-login-card {
        width: min(100%, 760px) !important;
    }

    body.ua-auth-fit-screen .ua-login--apex .ua-login-card {
        margin: 7px auto 5px !important;
    }

    body.ua-auth-fit-screen .ua-login--apex .ua-login-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.ua-auth-fit-screen .ua-login--apex .ua-login-logo img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain;
    }
}

/* Preserve the same polished accent on tablet/mobile cards. */
@media (max-width: 1024px) {
    body.ua-auth-body .ua-login--apex .ua-login-card::before {
        border-radius: 24px 24px 0 0;
    }
}

/* =========================================================
   END LOGIN TOP CARD CONSISTENCY FIX
   ========================================================= */

/* =========================================================
   AUTH SUBMIT PROGRESS
   Prevent accidental double-submit while preserving each page's UX.
   ========================================================= */
.ua-auth-panel form[aria-busy="true"] button[type="submit"],
.ua-auth-panel form[aria-busy="true"] input[type="submit"] {
    cursor: wait !important;
}

.ua-auth-panel .ua-auth-submit-loading {
    position: relative;
    pointer-events: none;
    opacity: .88;
}

.ua-auth-panel button.ua-auth-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.ua-auth-panel button.ua-auth-submit-loading::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: ua-auth-submit-spin .65s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .ua-auth-panel button.ua-auth-submit-loading::before {
        animation-duration: 1.2s;
    }
}

/* =========================================================
   START PHONE VERIFICATION GATE
   Required OTP field, resend cooldown and locked-account UI.
   ========================================================= */
.ua-forgot--apex .ua-phone-code-form {
    display: grid;
    gap: 14px;
}

.ua-forgot--apex .ua-phone-otp-group {
    width: min(100%, 470px);
    min-height: 58px;
    display: grid !important;
    grid-template-columns: repeat(var(--ua-phone-code-length, 6), minmax(46px, 1fr));
    grid-auto-rows: 58px;
    align-items: stretch;
    gap: clamp(7px, 1.8vw, 12px);
    margin-top: 10px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* OTP boxes override the shared auth input reset so they remain visible. */
body.ua-auth-body .ua-forgot--apex .ua-phone-otp-digit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #d7dee8 !important;
    border-radius: 13px !important;
    outline: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #172033 !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .055) !important;
    font-size: clamp(21px, 4vw, 28px) !important;
    font-weight: 900 !important;
    line-height: 58px !important;
    text-align: center !important;
    caret-color: var(--ua-a-red, #ef233c);
    font-variant-numeric: tabular-nums;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        transform .16s ease;
}

.ua-forgot--apex .ua-phone-otp-digit:hover:not(:disabled) {
    border-color: #c7d0dc;
}

.ua-forgot--apex .ua-phone-otp-digit:focus {
    z-index: 1;
    border-color: var(--ua-a-red, #ef233c);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239, 35, 60, .09), 0 8px 20px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.ua-forgot--apex .ua-phone-otp-group.is-complete .ua-phone-otp-digit {
    border-color: rgba(18, 184, 166, .38);
    background: linear-gradient(180deg, #ffffff 0%, #f4fffd 100%);
}

.ua-forgot--apex .ua-phone-otp-group.is-complete .ua-phone-otp-digit:focus {
    border-color: #12b8a6;
    box-shadow: 0 0 0 4px rgba(18, 184, 166, .10), 0 8px 20px rgba(15, 23, 42, .06);
}

.ua-forgot--apex .ua-phone-otp-group.is-invalid .ua-phone-otp-digit {
    border-color: #dc3545;
    background: #fffafa;
}

.ua-forgot--apex .ua-phone-otp-group.is-invalid .ua-phone-otp-digit:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, .09);
}

body.ua-auth-body .ua-forgot--apex .ua-phone-otp-group.is-disabled .ua-phone-otp-digit,
body.ua-auth-body .ua-forgot--apex .ua-phone-otp-digit:disabled {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-color: #cfd8e4 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%) !important;
    color: #95a1b1 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 7px rgba(15, 23, 42, .035) !important;
    cursor: not-allowed;
}

.ua-forgot--apex .ua-phone-code-help,
.ua-forgot--apex .ua-phone-resend-help {
    margin: 7px 0 0;
    color: #7a889a;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ua-forgot--apex .ua-phone-resend-form {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.ua-forgot--apex .ua-phone-resend-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(18, 184, 166, .16);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(18, 184, 166, .055), rgba(59, 130, 246, .045));
    appearance: none;
    cursor: pointer;
}

.ua-forgot--apex .ua-phone-resend-button:hover:not(:disabled) {
    border-color: rgba(18, 184, 166, .28);
    background: linear-gradient(120deg, rgba(18, 184, 166, .09), rgba(59, 130, 246, .07));
}

.ua-forgot--apex .ua-phone-resend-button:disabled,
.ua-forgot--apex .ua-forgot-submit:disabled {
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

.ua-forgot--apex .ua-phone-resend-button:disabled {
    color: #8b98a8;
    border-color: #e2e8ef;
    background: #f7f9fb;
    opacity: .9;
}

.ua-forgot--apex .ua-forgot-submit:disabled {
    background: linear-gradient(110deg, #aeb8c4, #bcc5cf);
    box-shadow: none;
    opacity: .72;
}

.ua-forgot--apex .ua-forgot-submit:disabled::before,
.ua-forgot--apex .ua-forgot-submit:disabled::after {
    display: none;
}

.ua-phone-lock-notice,
.ua-phone-warning,
.ua-phone-error {
    margin-top: 14px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.55;
}

.ua-phone-lock-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid rgba(245, 158, 11, .24);
    background: linear-gradient(110deg, rgba(255, 251, 235, .98), rgba(255, 247, 237, .94));
    color: #8a4f08;
}

.ua-phone-lock-notice__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(245, 158, 11, .12);
    color: #d97706;
}

.ua-phone-lock-notice__icon svg {
    width: 18px;
    height: 18px;
}

.ua-phone-lock-notice strong,
.ua-phone-lock-notice small {
    display: block;
}

.ua-phone-lock-notice strong {
    margin-bottom: 1px;
    font-size: 12px;
    font-weight: 900;
}

.ua-phone-lock-notice small {
    color: #9a641d;
    font-size: 11px;
    font-weight: 600;
}

.ua-phone-warning,
.ua-phone-error {
    padding: 12px 13px;
}

.ua-phone-warning {
    display: grid;
    gap: 3px;
    border: 1px solid #f7d58b;
    background: #fffbeb;
    color: #8a5a05;
}

.ua-phone-warning strong {
    font-weight: 900;
}

.ua-phone-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b42332;
    font-weight: 750;
}

.ua-phone-signout-form {
    margin-top: 13px;
    text-align: center;
}

.ua-phone-signout {
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #8793a3;
    font-size: 11.5px;
    font-weight: 750;
    cursor: pointer;
    transition: color .18s ease;
}

.ua-phone-signout:hover {
    color: var(--ua-a-red, #ef233c);
}

@media (max-width: 520px) {
    .ua-forgot--apex .ua-phone-otp-group {
        gap: 6px;
    }

    body.ua-auth-body .ua-forgot--apex .ua-phone-otp-digit {
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        font-size: 20px !important;
        line-height: 48px !important;
    }

    .ua-forgot--apex .ua-phone-otp-group {
        min-height: 48px;
        grid-auto-rows: 48px;
        grid-template-columns: repeat(var(--ua-phone-code-length, 6), minmax(38px, 1fr));
    }

    .ua-phone-lock-notice {
        align-items: flex-start;
    }
}

@media (max-width: 370px) {
    .ua-forgot--apex .ua-phone-otp-group {
        gap: 4px;
    }

    body.ua-auth-body .ua-forgot--apex .ua-phone-otp-digit {
        height: 43px !important;
        min-height: 43px !important;
        border-radius: 9px !important;
        font-size: 18px !important;
        line-height: 43px !important;
    }

    .ua-forgot--apex .ua-phone-otp-group {
        min-height: 43px;
        grid-auto-rows: 43px;
        grid-template-columns: repeat(var(--ua-phone-code-length, 6), minmax(34px, 1fr));
    }
}
/* =========================================================
   END PHONE VERIFICATION GATE
   ========================================================= */
