/* EASRMS — Login v5: vivid smooth gradients + polished credentials */

html.auth-page,
html.auth-page body.auth-split.auth-v2 {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
}

.auth-v2.auth-split {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Left — clean white credentials half (no blur, no decorations) */
.auth-login-side {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 48px);
    background: #ffffff;
    border-right: 1px solid #e8ecf4;
    isolation: isolate;
    overflow: hidden;
}

/* Never show brand decorations or blur overlay on login half */
.auth-login-side::before,
.auth-login-side::after {
    display: none !important;
    content: none !important;
}

.auth-login-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
}

/* Login card — simple solid white */
.auth-card-v2 {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 32px 30px 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e8ecf4;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
    animation: authCardRise .55s cubic-bezier(.4, 0, .2, 1) both;
    overflow: hidden;
}

.auth-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #0ea5e9, #10b981, #f59e0b);
    background-size: 200% 100%;
    animation: authAccentBar 8s ease infinite;
}

.auth-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-top: 4px;
}

/* Colored icon square */
.auth-glass-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8ecf4;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

/* Login half — flat, no glass highlights */
.auth-login-side .auth-glass-icon {
    background: #f1f5f9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.auth-login-side .auth-glass-icon::before {
    display: none;
}

.auth-login-side .auth-glass-icon--brand {
    background: #6366f1;
    border-color: #6366f1;
}

.auth-login-side .auth-glass-icon--brand i { color: #fff; }

.auth-login-side .auth-glass-icon--indigo { background: #eef2ff; border-color: #c7d2fe; }
.auth-login-side .auth-glass-icon--indigo i { color: #4f46e5; }

.auth-login-side .auth-glass-icon--violet { background: #f5f3ff; border-color: #ddd6fe; }
.auth-login-side .auth-glass-icon--violet i { color: #7c3aed; }

.auth-login-side .auth-glass-icon--sky { background: #f0f9ff; border-color: #bae6fd; }
.auth-login-side .auth-glass-icon--sky i { color: #0284c7; }

.auth-login-side .auth-glass-icon--rose { background: #fff1f2; border-color: #fecdd3; }
.auth-login-side .auth-glass-icon--rose i { color: #e11d48; }

.auth-login-side .auth-glass-icon--emerald { background: #ecfdf5; border-color: #a7f3d0; }
.auth-login-side .auth-glass-icon--emerald i { color: #059669; }

.auth-glass-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: .92;
    z-index: 0;
}

.auth-glass-icon i {
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1;
}

.auth-glass-icon--sm {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.auth-glass-icon--sm i { font-size: 14px; }

.auth-glass-icon--brand.auth-logo-sm {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin: 0;
}

.auth-glass-icon--brand.auth-logo-sm i { font-size: 22px; }

.auth-glass-icon--brand::before {
    background: linear-gradient(145deg, #818cf8, #6366f1);
}

.auth-glass-icon--brand i { color: #fff; }

.auth-glass-icon--indigo::before { background: linear-gradient(145deg, rgba(99, 102, 241, .5), rgba(165, 180, 252, .28)); }
.auth-glass-icon--indigo i { color: #4338ca; }

.auth-glass-icon--violet::before { background: linear-gradient(145deg, rgba(139, 92, 246, .5), rgba(196, 181, 253, .28)); }
.auth-glass-icon--violet i { color: #6d28d9; }

.auth-glass-icon--sky::before { background: linear-gradient(145deg, rgba(14, 165, 233, .48), rgba(125, 211, 252, .25)); }
.auth-glass-icon--sky i { color: #0369a1; }

.auth-glass-icon--cyan::before { background: linear-gradient(145deg, rgba(6, 182, 212, .42), rgba(34, 211, 238, .2)); }
.auth-glass-icon--cyan i { color: #0891b2; }

.auth-glass-icon--amber::before { background: linear-gradient(145deg, rgba(245, 158, 11, .42), rgba(251, 191, 36, .2)); }
.auth-glass-icon--amber i { color: #d97706; }

.auth-glass-icon--rose::before { background: linear-gradient(145deg, rgba(244, 63, 94, .38), rgba(251, 113, 133, .18)); }
.auth-glass-icon--rose i { color: #e11d48; }

.auth-glass-icon--emerald::before { background: linear-gradient(145deg, rgba(16, 185, 129, .4), rgba(52, 211, 153, .2)); }
.auth-glass-icon--emerald i { color: #059669; }

.auth-glass-icon--white::before { background: rgba(255, 255, 255, .28); }
.auth-glass-icon--white i { color: #fff; }

/* Input row */
.auth-input-glass {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 5px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.auth-login-side .auth-input-glass {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-login-side .auth-input-glass:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.auth-login-side .auth-input-glass:focus-within {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: none;
    outline: none;
}

.auth-input-glass:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.auth-input-glass:focus-within {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: none;
}

.auth-input-glass .toggle,
.auth-input-glass .auth-glass-icon--toggle {
    position: static;
    right: auto;
    top: auto;
    transform: none;
}

.auth-input-glass .auth-glass-icon--toggle:active {
    transform: scale(.96);
}

.auth-field-glass .field label,
.auth-field-glass label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-card-v2 h1 {
    text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
    background: linear-gradient(120deg, #312e81 0%, #4f46e5 45%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card-v2 .sub {
    text-align: left;
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}

.auth-card-v2 .field {
    margin-bottom: 16px;
}

.auth-card-v2 .field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
}

.auth-card-v2 .field .err {
    margin-top: 6px;
    font-size: 12px;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    min-height: 50px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4f46e5 !important;
    box-shadow: none;
    transition: background .2s;
}

.auth-login-side .auth-submit {
    background: #4f46e5 !important;
    animation: none;
    box-shadow: none;
}

.auth-login-side .auth-submit::after {
    display: none;
}

.auth-submit:hover {
    background: #4338ca !important;
    box-shadow: none;
    transform: none;
}

.auth-submit > i {
    font-size: 15px;
    color: #ffffff;
    line-height: 1;
}

.auth-card-v2 .auth-input-glass .input {
    flex: 1;
    height: 42px;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    padding: 0 8px 0 0;
}

.auth-card-v2 .auth-input-glass .input:focus {
    border: none;
    box-shadow: none !important;
    outline: none;
}

.auth-login-side .input:focus {
    box-shadow: none !important;
    outline: none;
}

.auth-login-side .field.invalid .auth-input-glass {
    border-color: #f43f5e;
    box-shadow: none;
}

/* Password eye toggle */
.auth-glass-icon--toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: background .2s, border-color .2s;
}

.auth-login-side .auth-glass-icon--toggle:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-glass-icon--toggle:active {
    transform: none;
}

.auth-login-side .auth-glass-icon--toggle.is-visible {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.auth-login-side .auth-glass-icon--toggle.is-visible i {
    color: #4f46e5;
}

.auth-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: none;
}

.auth-error.show { display: flex; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
    font-size: 13px;
    color: #64748b;
}

.auth-card-v2 .checkline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.auth-card-v2 .checkline input {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.auth-card-v2 .auth-forgot {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}

.auth-card-v2 .auth-forgot:hover {
    color: #4f46e5;
}

.auth-secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.auth-login-side .auth-secure {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

@keyframes authCardRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Right — white glass over soft light gradients */
.auth-brand-side {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(36px, 6vw, 64px);
    color: #1e293b;
    isolation: isolate;
    contain: paint;
}

/* Base white canvas */
.auth-brand-side::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #ffffff 100%);
}

/* Vivid smooth gradients underneath */
.auth-brand-mesh {
    position: absolute;
    inset: -30%;
    z-index: 1;
    background:
        radial-gradient(ellipse 65% 55% at 15% 20%, rgba(165, 180, 252, .95), transparent 55%),
        radial-gradient(ellipse 58% 48% at 85% 12%, rgba(251, 207, 232, .88), transparent 52%),
        radial-gradient(ellipse 55% 50% at 68% 78%, rgba(125, 211, 252, .9), transparent 54%),
        radial-gradient(ellipse 48% 42% at 8% 82%, rgba(110, 231, 183, .82), transparent 50%),
        radial-gradient(ellipse 42% 36% at 92% 52%, rgba(253, 224, 71, .75), transparent 48%),
        radial-gradient(ellipse 40% 34% at 45% 38%, rgba(216, 180, 254, .7), transparent 46%),
        linear-gradient(125deg, #e0e7ff 0%, #f0f9ff 35%, #ecfdf5 65%, #fef3c7 100%);
    animation: authMeshShift 24s ease-in-out infinite alternate;
}

/* Soft blurred color blooms under the glass */
.auth-brand-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: .88;
    pointer-events: none;
    z-index: 2;
}

.auth-brand-blur-1 {
    width: 440px;
    height: 440px;
    top: -12%;
    left: 5%;
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
    animation: authBlurDrift1 14s ease-in-out infinite;
}

.auth-brand-blur-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -20%;
    background: linear-gradient(135deg, #38bdf8, #7dd3fc);
    animation: authBlurDrift2 16s ease-in-out infinite;
}

.auth-brand-blur-3 {
    width: 360px;
    height: 360px;
    bottom: -14%;
    left: 18%;
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    animation: authBlurDrift3 13s ease-in-out infinite;
}

.auth-brand-blur-4 {
    width: 300px;
    height: 300px;
    top: 8%;
    right: 24%;
    background: linear-gradient(135deg, #f9a8d4, #fcd34d);
    animation: authBlurDrift4 15s ease-in-out infinite;
}

/* Frosted glass — right panel only */
.auth-brand-side::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(255, 255, 255, .36);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    pointer-events: none;
}

/* Subtle dot grid */
.auth-brand-dots {
    position: absolute;
    inset: 0;
    z-index: 4;
    background-image: radial-gradient(rgba(148, 163, 184, .28) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    pointer-events: none;
    animation: authDotsDrift 24s linear infinite;
}

/* Dashed + solid animated circles */
.auth-brand-circles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.auth-circle {
    position: absolute;
    border-radius: 50%;
    display: block;
}

.auth-circle--dashed {
    border: 1.5px dashed rgba(148, 163, 184, .28);
    background: transparent;
}

.auth-circle--solid {
    border: 1px solid rgba(255, 255, 255, .65);
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-circle-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -80px;
    left: auto;
    animation: authCircleSpin 48s linear infinite;
}

.auth-circle-2 {
    width: 280px;
    height: 280px;
    bottom: 60px;
    right: -60px;
    left: auto;
    border-color: rgba(165, 180, 252, .35);
    animation: authCircleSpinRev 36s linear infinite;
}

.auth-circle-3 {
    width: 120px;
    height: 120px;
    top: 22%;
    right: 18%;
    left: auto;
    animation: authCirclePulse 6s ease-in-out infinite;
}

.auth-circle-4 {
    width: 72px;
    height: 72px;
    bottom: 28%;
    right: 35%;
    left: auto;
    animation: authCircleFloat 8s ease-in-out infinite;
}

.auth-brand-inner {
    position: relative;
    z-index: 6;
    max-width: 520px;
}

.brand-chip-lg.auth-glass-icon--brand {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 20px;
    border-color: rgba(255, 255, 255, .75);
    box-shadow:
        0 14px 36px rgba(99, 102, 241, .18),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: authChipGlow 4s ease-in-out infinite;
}

.brand-chip-lg.auth-glass-icon--brand i { font-size: 26px; }

.brand-title-lg {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 10px;
    background: linear-gradient(120deg, #312e81 0%, #4f46e5 40%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag-lg {
    margin: 0 0 36px;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    max-width: 38ch;
}

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

.auth-glass-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .95);
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow:
        0 12px 36px rgba(99, 102, 241, .1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.auth-glass-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .95);
    box-shadow:
        0 16px 44px rgba(99, 102, 241, .14),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.auth-glass-card .auth-glass-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .55);
    box-shadow:
        0 6px 20px rgba(148, 163, 184, .1),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.auth-glass-card .auth-glass-icon i { font-size: 17px; }

.auth-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.auth-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.auth-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

/* Animations */
@keyframes authAccentBar {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes authBtnShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes authMeshShift {
    0% { transform: scale(1) rotate(0deg) translate(0, 0); }
    33% { transform: scale(1.06) rotate(1deg) translate(1.5%, -0.5%); }
    66% { transform: scale(1.04) rotate(-0.5deg) translate(-0.5%, 1%); }
    100% { transform: scale(1.05) rotate(0.5deg) translate(1%, 1.5%); }
}

@keyframes authBlurDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes authBlurDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, 25px) scale(1.08); }
}

@keyframes authBlurDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -30px) scale(1.12); }
}

@keyframes authBlurDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .7; }
    50% { transform: translate(-20px, 20px) scale(1.15); opacity: .85; }
}

@keyframes authDotsDrift {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes authCircleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes authCircleSpinRev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes authCirclePulse {
    0%, 100% { transform: scale(1); opacity: .75; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes authCircleFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(12px, -14px); }
    66% { transform: translate(-8px, 10px); }
}

@keyframes authChipGlow {
    0%, 100% { box-shadow: 0 14px 36px rgba(99, 102, 241, .18), inset 0 1px 0 rgba(255, 255, 255, .9); }
    50% { box-shadow: 0 14px 48px rgba(129, 140, 248, .28), inset 0 1px 0 rgba(255, 255, 255, 1); }
}

/* Tablet — stack, brand on top */
@media (max-width: 960px) {
    .auth-v2.auth-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-brand-side {
        order: -1;
        padding: 32px 28px 28px;
        min-height: auto;
    }

    .auth-brand-inner { max-width: none; }
    .brand-tag-lg { margin-bottom: 20px; }
    .auth-highlights { gap: 10px; }
    .auth-login-side {
        padding: 28px 24px 40px;
        border-right: none;
        border-bottom: 1px solid #e8ecf4;
    }
}

/* Mobile — 4 feature cards in 2×2 grid */
@media (max-width: 640px) {
    html.auth-page,
    html.auth-page body.auth-split.auth-v2 {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .auth-v2.auth-split {
        height: 100dvh;
        max-height: 100dvh;
        grid-template-rows: minmax(0, 0.46fr) minmax(0, 0.54fr);
        overflow: hidden;
        box-sizing: border-box;
    }

    .auth-brand-side {
        order: -1;
        padding: 14px 14px 12px;
        align-items: stretch;
        min-height: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .auth-brand-inner {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        min-height: 0;
        box-sizing: border-box;
    }

    .auth-brand-hero {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        padding-bottom: 2px;
    }

    .brand-chip-lg.auth-glass-icon--brand {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .brand-chip-lg.auth-glass-icon--brand i { font-size: 17px; }

    .brand-title-lg {
        font-size: 1.05rem;
        margin: 0;
        line-height: 1.2;
    }

    .brand-tag-lg {
        display: none;
    }

    /* 4 cards — 2×2, tight height (no empty space inside) */
    .auth-highlights {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        margin: 0;
        flex: 0 0 auto;
        box-sizing: border-box;
    }

    .auth-highlights .auth-glass-card {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        height: auto;
        min-height: 82px;
        padding: 12px 10px 16px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, .95);
        box-shadow: 0 3px 12px rgba(99, 102, 241, .07);
        box-sizing: border-box;
        overflow: hidden;
    }

    .auth-highlights .auth-glass-card::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 4px;
        opacity: .85;
    }

    .auth-highlights .auth-glass-card:nth-child(1) {
        background: linear-gradient(160deg, #cffafe 0%, #ecfeff 35%, #ffffff 100%);
    }

    .auth-highlights .auth-glass-card:nth-child(1)::after {
        background: linear-gradient(90deg, #06b6d4, #22d3ee);
    }

    .auth-highlights .auth-glass-card:nth-child(2) {
        background: linear-gradient(160deg, #fde68a 0%, #fffbeb 35%, #ffffff 100%);
    }

    .auth-highlights .auth-glass-card:nth-child(2)::after {
        background: linear-gradient(90deg, #f59e0b, #fbbf24);
    }

    .auth-highlights .auth-glass-card:nth-child(3) {
        background: linear-gradient(160deg, #c7d2fe 0%, #eef2ff 35%, #ffffff 100%);
    }

    .auth-highlights .auth-glass-card:nth-child(3)::after {
        background: linear-gradient(90deg, #6366f1, #818cf8);
    }

    .auth-highlights .auth-glass-card:nth-child(4) {
        background: linear-gradient(160deg, #fbcfe8 0%, #fdf2f8 35%, #ffffff 100%);
    }

    .auth-highlights .auth-glass-card:nth-child(4)::after {
        background: linear-gradient(90deg, #f43f5e, #fb7185);
    }

    .auth-highlights .auth-glass-card .auth-glass-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    }

    .auth-highlights .auth-glass-card .auth-glass-icon i {
        font-size: 16px;
    }

    .auth-highlights .auth-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .auth-highlights .auth-card-title {
        font-size: 12px;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.2;
        letter-spacing: -.02em;
    }

    .auth-highlights .auth-card-desc {
        font-size: 10.5px;
        color: #475569;
        line-height: 1.4;
    }

    /* Smaller decorative circles on mobile */
    .auth-circle-1 { width: 200px; height: 200px; top: -70px; right: -40px; left: auto; }
    .auth-circle-2 { width: 140px; height: 140px; bottom: 10px; right: -30px; left: auto; }
    .auth-circle-3 { width: 56px; height: 56px; top: 18%; right: 12%; left: auto; }
    .auth-circle-4 { width: 40px; height: 40px; bottom: 20%; right: 30%; left: auto; }

    .auth-brand-blur-1 { width: 180px; height: 180px; filter: blur(48px); }
    .auth-brand-blur-2 { width: 160px; height: 160px; filter: blur(48px); }
    .auth-brand-blur-3 { width: 140px; height: 140px; filter: blur(40px); }
    .auth-brand-blur-4 { width: 120px; height: 120px; filter: blur(40px); }

    .auth-login-side {
        padding: 12px 16px 16px;
        align-items: flex-start;
        min-height: 0;
        overflow: hidden;
        border-right: none;
        border-top: 1px solid #e8ecf4;
        background: #ffffff;
    }

    .auth-login-wrap {
        max-width: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-card-v2 {
        padding: 18px 16px 14px;
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(31, 34, 51, .07);
    }

    .auth-card-top {
        gap: 10px;
        margin-bottom: 12px;
    }

    .auth-glass-icon--brand.auth-logo-sm {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .auth-glass-icon--brand.auth-logo-sm i { font-size: 17px; }

    .auth-glass-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .auth-glass-icon i { font-size: 14px; }

    .auth-glass-icon--toggle {
        width: 34px;
        height: 34px;
    }

    .auth-card-v2 .auth-input-glass .input {
        height: 38px;
        font-size: 14px;
    }

    .auth-input-glass {
        padding: 5px 6px 5px 5px;
        gap: 8px;
        border-radius: 13px;
    }

    .auth-card-v2 h1 {
        font-size: 1.25rem;
    }

    .auth-card-v2 .sub {
        font-size: 12px;
        margin-top: 2px;
        line-height: 1.35;
    }

    .auth-card-v2 .field {
        margin-bottom: 10px;
    }

    .auth-card-v2 .field label {
        font-size: 12px;
        margin-bottom: 4px;
    }


    .auth-row {
        margin: 6px 0 10px;
        font-size: 12px;
    }

    .auth-submit {
        min-height: 42px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-secure {
        margin-top: 10px;
        font-size: 11px;
        padding: 8px 10px;
        gap: 8px;
    }

    .auth-secure .auth-glass-icon--sm {
        width: 28px;
        height: 28px;
    }

    .auth-error {
        padding: 10px 12px;
        font-size: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 380px) {
    .auth-card-v2 .sub { display: none; }
    .auth-secure { display: none; }
    .auth-row .checkline span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand-mesh,
    .auth-brand-blur,
    .auth-brand-dots,
    .auth-circle,
    .brand-chip-lg,
    .auth-card-v2,
    .auth-card-v2::before,
    .auth-submit {
        animation: none !important;
    }
}
