/**
 * =============================================================================
 * QR Se Print Professional v4.0
 * =============================================================================
 *
 * Company       : Everest Remote Solution
 * Project       : QR Se Print Professional v4.0
 *
 * Module        : ADMIN-002
 * Module Name   : Admin Login UI
 *
 * File          : login.css
 *
 * Version       : 1.0.0
 * Build         : 2026.08.09.002
 *
 * PHP           : 8.3+
 * Standard      : PSR-12 / Enterprise UI Standard
 * Status        : Production
 *
 * Developed By  : Anand Kumar + AI
 *
 * Description   :
 * Premium responsive animated stylesheet for the administrator login
 * interface.
 * =============================================================================
 */

/* ==========================================================================
   Root
   ========================================================================== */

:root {
    --login-bg: #070b14;
    --login-surface: rgba(15, 23, 42, 0.82);
    --login-surface-border: rgba(255, 255, 255, 0.10);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --accent-success: #34d399;

    --input-bg: rgba(2, 6, 23, 0.62);
    --input-border: rgba(148, 163, 184, 0.20);
    --input-focus: rgba(56, 189, 248, 0.55);

    --danger: #fb7185;

    --shadow-card:
        0 30px 80px rgba(0, 0, 0, 0.48);

    --shadow-focus:
        0 0 0 4px rgba(56, 189, 248, 0.10);

    --radius-card: 24px;
    --radius-input: 13px;
    --radius-button: 13px;

    --transition-fast: 160ms ease;
    --transition-normal: 280ms ease;
}


/* ==========================================================================
   Reset
   ========================================================================== */

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


html {
    min-height: 100%;
    font-size: 16px;
}


body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(56, 189, 248, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(129, 140, 248, 0.08),
            transparent 32%
        ),
        var(--login-bg);

    color: var(--text-primary);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input {
    font: inherit;
}


button {
    border: 0;
}


button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}


/* ==========================================================================
   Login Shell
   ========================================================================== */

.login-shell {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    width: 100%;

    padding: 32px 20px;

    overflow: hidden;

    isolation: isolate;
}


/* ==========================================================================
   Background Grid
   ========================================================================== */

.background-grid {
    position: absolute;
    inset: 0;

    z-index: -5;

    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.035) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 0%,
            transparent 76%
        );

    pointer-events: none;
}


/* ==========================================================================
   Animated Orbs
   ========================================================================== */

.orb {
    position: absolute;

    z-index: -3;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    filter: blur(65px);

    opacity: 0.30;

    pointer-events: none;

    animation:
        orbFloat 12s ease-in-out infinite alternate;
}


.orb-one {
    top: -90px;
    left: -80px;

    background: rgba(56, 189, 248, 0.32);

    animation-delay: -2s;
}


.orb-two {
    right: -100px;
    bottom: -80px;

    width: 320px;
    height: 320px;

    background: rgba(129, 140, 248, 0.28);

    animation-delay: -6s;
}


.orb-three {
    top: 42%;
    left: 52%;

    width: 170px;
    height: 170px;

    background: rgba(52, 211, 153, 0.12);

    animation-duration: 16s;
}


@keyframes orbFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(28px, -20px, 0) scale(1.08);
    }
}


/* ==========================================================================
   Login Card
   ========================================================================== */

.login-card {
    position: relative;

    width: min(100%, 470px);

    overflow: hidden;

    border: 1px solid var(--login-surface-border);
    border-radius: var(--radius-card);

    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.72),
            rgba(15, 23, 42, 0.88)
        );

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    animation:
        cardEnter 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}


.login-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            transparent 25%,
            transparent 72%,
            rgba(56, 189, 248, 0.035)
        );
}


.login-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(56, 189, 248, 0.65),
            transparent
        );

    opacity: 0.7;
}


@keyframes cardEnter {
    from {
        opacity: 0;
        transform:
            translateY(24px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* ==========================================================================
   Brand
   ========================================================================== */

.brand-section {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 30px 32px 24px;
}


.brand-mark {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    border: 1px solid rgba(56, 189, 248, 0.30);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, 0.16),
            rgba(129, 140, 248, 0.14)
        );

    box-shadow:
        0 10px 35px rgba(56, 189, 248, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    animation: logoPulse 4s ease-in-out infinite;
}


.brand-mark::before {
    content: "";

    position: absolute;
    inset: -5px;

    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 19px;

    animation: logoRing 3s linear infinite;
}


.brand-mark span {
    position: relative;

    color: #f8fafc;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.05em;
}


@keyframes logoPulse {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}


@keyframes logoRing {
    from {
        transform: rotate(0deg);
        opacity: 0.25;
    }

    50% {
        opacity: 0.60;
    }

    to {
        transform: rotate(360deg);
        opacity: 0.25;
    }
}


.brand-text h1 {
    margin: 0;

    color: var(--text-primary);

    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.025em;
}


.brand-text p {
    margin: 4px 0 0;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 500;
}


/* ==========================================================================
   Login Content
   ========================================================================== */

.login-content {
    position: relative;

    padding: 10px 32px 30px;
}


.welcome-block {
    margin-bottom: 28px;
}


.eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    color: var(--accent-primary);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}


.welcome-block h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(28px, 6vw, 34px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.045em;
}


.welcome-block p {
    max-width: 340px;

    margin: 10px 0 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================================================
   Form
   ========================================================================== */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.field-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.field-group label {
    color: #cbd5e1;

    font-size: 12px;
    font-weight: 650;
}


.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}


.input-icon {
    position: absolute;
    left: 15px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;

    color: var(--text-muted);

    font-size: 15px;
    font-weight: 700;

    pointer-events: none;

    transition:
        color var(--transition-normal),
        transform var(--transition-normal);
}


.input-wrapper input {
    width: 100%;
    height: 50px;

    padding:
        0
        82px
        0
        46px;

    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);

    background: var(--input-bg);

    color: var(--text-primary);

    font-size: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal),
        transform var(--transition-normal);
}


.input-wrapper input::placeholder {
    color: #475569;
}


.input-wrapper input:hover {
    border-color: rgba(148, 163, 184, 0.30);
}


.input-wrapper input:focus {
    border-color: var(--input-focus);

    background: rgba(2, 6, 23, 0.78);

    box-shadow:
        var(--shadow-focus),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


.input-wrapper:focus-within .input-icon {
    color: var(--accent-primary);

    transform: scale(1.08);
}


/* ==========================================================================
   Password Toggle
   ========================================================================== */

.password-toggle {
    position: absolute;
    right: 10px;

    z-index: 3;

    min-width: 54px;
    height: 34px;

    padding: 0 9px;

    border-radius: 8px;

    background: rgba(148, 163, 184, 0.07);

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}


.password-toggle:hover {
    background: rgba(56, 189, 248, 0.10);

    color: var(--accent-primary);
}


.password-toggle:active {
    transform: scale(0.95);
}


/* ==========================================================================
   Login Button
   ========================================================================== */

.login-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 52px;

    margin-top: 2px;

    overflow: hidden;

    border-radius: var(--radius-button);

    background:
        linear-gradient(
            110deg,
            #0ea5e9,
            #6366f1,
            #0ea5e9
        );

    background-size: 220% 100%;

    color: #ffffff;

    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(14, 165, 233, 0.18);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        opacity var(--transition-normal);

    animation: buttonGradient 5s ease infinite;
}


.login-button::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 600ms ease;
}


.login-button:hover::before {
    left: 150%;
}


.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 36px rgba(14, 165, 233, 0.25);
}


.login-button:active {
    transform: translateY(1px) scale(0.995);
}


.login-button.is-loading {
    cursor: wait;

    opacity: 0.82;
}


.login-button.is-loading .button-text {
    opacity: 0;
}


.button-loader {
    position: absolute;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    opacity: 0;

    animation: spin 700ms linear infinite;
}


.login-button.is-loading .button-loader {
    opacity: 1;
}


@keyframes buttonGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


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


/* ==========================================================================
   Security Note
   ========================================================================== */

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 22px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 550;
}


.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 50%;

    background: rgba(52, 211, 153, 0.08);

    color: var(--accent-success);

    font-size: 9px;
    font-weight: 800;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 18px 24px 22px;

    border-top: 1px solid rgba(148, 163, 184, 0.07);

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 550;
}


.footer-separator {
    opacity: 0.45;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {

    .login-shell {
        align-items: flex-start;

        padding:
            22px 14px;
    }


    .login-card {
        margin-top: 8vh;

        border-radius: 20px;
    }


    .brand-section {
        padding:
            24px 22px 20px;
    }


    .login-content {
        padding:
            8px 22px 24px;
    }


    .login-footer {
        flex-wrap: wrap;

        padding:
            16px 18px 20px;

        text-align: center;
    }


    .orb {
        width: 210px;
        height: 210px;

        filter: blur(55px);
    }

}


@media (max-width: 380px) {

    .login-shell {
        padding:
            14px 10px;
    }


    .login-card {
        margin-top: 4vh;
    }


    .brand-section {
        padding:
            20px 18px 18px;
    }


    .login-content {
        padding:
            6px 18px 22px;
    }


    .brand-mark {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }


    .welcome-block h2 {
        font-size: 27px;
    }


    .input-wrapper input {
        height: 48px;
    }


    .login-button {
        height: 50px;
    }

}


/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* ==========================================================================
   QR Se Print — Four-theme login palette rotation
   Build: 2026.10.26.001
   ========================================================================== */

html[data-ui-theme="olive-light"] {
    --login-bg: #f1f3e7;
    --login-surface: #fffef7;
    --login-surface-border: #d6ddc5;
    --text-primary: #2d3521;
    --text-secondary: #59634b;
    --text-muted: #707b60;
    --accent-primary: #68783e;
    --accent-secondary: #91a064;
    --input-bg: #ffffff;
    --input-border: #cbd3b8;
    --input-focus: rgba(104, 120, 62, .35);
    --shadow-card: 0 24px 65px rgba(55, 67, 34, .16);
}

html[data-ui-theme="olive-black"] {
    --login-bg: #11140e;
    --login-surface: #1b2116;
    --login-surface-border: #39432d;
    --text-primary: #edf2df;
    --text-secondary: #bdc7a8;
    --text-muted: #9aa685;
    --accent-primary: #a5b96a;
    --accent-secondary: #c1d28a;
    --input-bg: #12170f;
    --input-border: #465238;
    --input-focus: rgba(165, 185, 106, .35);
    --shadow-card: 0 24px 65px rgba(0, 0, 0, .38);
}

html[data-ui-theme="soft-multicolor"] {
    --login-bg: #f5f2fa;
    --login-surface: #ffffff;
    --login-surface-border: #e3daf1;
    --text-primary: #302b3b;
    --text-secondary: #655c76;
    --text-muted: #817791;
    --accent-primary: #9274cb;
    --accent-secondary: #d38eae;
    --input-bg: #fcfaff;
    --input-border: #ded4ed;
    --input-focus: rgba(146, 116, 203, .30);
    --shadow-card: 0 24px 65px rgba(91, 67, 128, .15);
}

html[data-ui-theme="blue-white"] {
    --login-bg: #f1f6fd;
    --login-surface: #ffffff;
    --login-surface-border: #d7e4f5;
    --text-primary: #1e3554;
    --text-secondary: #526b8b;
    --text-muted: #7185a0;
    --accent-primary: #2875d8;
    --accent-secondary: #55a4ee;
    --input-bg: #fafdff;
    --input-border: #d0def0;
    --input-focus: rgba(40, 117, 216, .30);
    --shadow-card: 0 24px 65px rgba(34, 77, 130, .15);
}

html[data-ui-theme] body {
    background:
        radial-gradient(circle at 12% 12%, var(--accent-secondary), transparent 36%),
        radial-gradient(circle at 88% 88%, var(--accent-primary), transparent 38%),
        var(--login-bg);
    color: var(--text-primary);
    transition: background-color 220ms ease, color 220ms ease;
}

html[data-ui-theme] .unified-login-shell {
    padding: 32px;
    border: 1px solid var(--login-surface-border);
    border-radius: 24px;
    background: var(--login-surface);
    box-shadow: var(--shadow-card);
    transition: background-color 220ms ease, border-color 220ms ease;
}

html[data-ui-theme] .unified-login-heading h1,
html[data-ui-theme] .unified-login-field label,
html[data-ui-theme] .account-type-selector,
html[data-ui-theme] fieldset legend {
    color: var(--text-primary);
}

html[data-ui-theme] .unified-login-heading p,
html[data-ui-theme] .unified-login-security {
    color: var(--text-secondary);
}

html[data-ui-theme] .unified-login-field input {
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
}

html[data-ui-theme] .unified-password-toggle {
    color: var(--accent-primary);
}

html[data-ui-theme] .account-type-option {
    color: var(--text-primary);
    border-color: var(--login-surface-border);
}

html[data-ui-theme] .account-type-option:has(input:checked) {
    border-color: var(--accent-primary) !important;
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent) !important;
}

html[data-ui-theme] .account-type-option input {
    accent-color: var(--accent-primary) !important;
}

html[data-ui-theme] .login-button {
    color: #ffffff;
    background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
}

html[data-ui-theme="olive-black"] .login-button {
    color: #11140e;
}

@media (max-width: 520px) {
    html[data-ui-theme] .unified-login-shell {
        padding: 24px 18px;
        border-radius: 18px;
    }
}

/* ==========================================================================
   QR Se Print — Premium two-panel login redesign
   Build: 2026.10.26.002
   ========================================================================== */

html[data-ui-theme] body {
    min-height: 100vh;
    padding: 0;
}

html[data-ui-theme] .unified-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
    align-items: stretch;
    width: min(1180px, calc(100% - 64px));
    max-width: 1180px;
    min-height: min(760px, calc(100vh - 64px));
    margin: 32px auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--login-surface-border);
    border-radius: 28px;
    background: var(--login-surface);
    box-shadow: var(--shadow-card);
}

html[data-ui-theme] .login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 70px);
    overflow: hidden;
    isolation: isolate;
    color: var(--text-primary);
    background:
        radial-gradient(ellipse at 18% 15%, color-mix(in srgb, var(--accent-secondary) 24%, transparent), transparent 46%),
        radial-gradient(ellipse at 86% 84%, color-mix(in srgb, var(--accent-primary) 20%, transparent), transparent 45%),
        var(--login-bg);
}

html[data-ui-theme] .login-brand-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    mask-image: linear-gradient(to bottom right, black, transparent 90%);
}

html[data-ui-theme] .login-brand-content {
    width: 100%;
    max-width: 470px;
    margin: auto;
}

html[data-ui-theme] .login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 64px;
    height: 64px;
    margin-bottom: 42px;
    border: 1px solid var(--login-surface-border);
    border-radius: 19px;
    color: var(--accent-primary);
    background: var(--login-surface);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--text-primary) 9%, transparent);
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -1px;
}

html[data-ui-theme] .login-brand-mark-accent {
    color: var(--accent-secondary);
}

html[data-ui-theme] .login-brand-eyebrow {
    margin: 0 0 16px;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
}

html[data-ui-theme] .login-brand-title {
    max-width: 440px;
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1.08;
}

html[data-ui-theme] .login-brand-description {
    max-width: 390px;
    margin: 22px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

html[data-ui-theme] .login-brand-visual {
    position: relative;
    height: 205px;
    margin: 22px 0 18px;
    overflow: hidden;
}

html[data-ui-theme] .login-visual-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    border: 1px solid color-mix(in srgb, var(--accent-primary) 28%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

html[data-ui-theme] .login-visual-orbit-two {
    width: 145px;
    height: 145px;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent-secondary) 42%, transparent);
}

html[data-ui-theme] .login-visual-sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 154px;
    border: 1px solid var(--login-surface-border);
    border-radius: 13px;
    background: var(--login-surface);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--text-primary) 12%, transparent);
}

html[data-ui-theme] .login-visual-sheet-back {
    transform: translate(-37%, -53%) rotate(11deg);
    opacity: .62;
}

html[data-ui-theme] .login-visual-sheet-front {
    padding: 24px 16px;
    transform: translate(-63%, -48%) rotate(-7deg);
}

html[data-ui-theme] .login-visual-sheet-line {
    display: block;
    width: 76%;
    height: 5px;
    margin-bottom: 8px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--accent-primary) 35%, var(--login-surface));
}

html[data-ui-theme] .login-visual-sheet-line.short {
    width: 48%;
    margin-bottom: 13px;
    background: color-mix(in srgb, var(--text-secondary) 24%, var(--login-surface));
}

html[data-ui-theme] .login-visual-qr {
    display: grid;
    grid-template-columns: repeat(3, 13px);
    gap: 4px;
    width: max-content;
    padding: 7px;
    border: 1px solid var(--login-surface-border);
    border-radius: 5px;
    background: var(--login-surface);
}

html[data-ui-theme] .login-visual-qr span {
    width: 13px;
    height: 13px;
    border: 3px solid var(--accent-primary);
    border-radius: 2px;
    background: color-mix(in srgb, var(--accent-secondary) 22%, var(--login-surface));
}

html[data-ui-theme] .login-visual-qr span:nth-child(2),
html[data-ui-theme] .login-visual-qr span:nth-child(4),
html[data-ui-theme] .login-visual-qr span:nth-child(6),
html[data-ui-theme] .login-visual-qr span:nth-child(8) {
    border: 0;
    background: var(--accent-secondary);
}

html[data-ui-theme] .login-visual-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-primary) 13%, transparent);
}

html[data-ui-theme] .login-visual-dot-one {
    top: 32px;
    right: 18%;
}

html[data-ui-theme] .login-visual-dot-two {
    bottom: 26px;
    left: 18%;
    width: 7px;
    height: 7px;
    background: var(--accent-secondary);
}

html[data-ui-theme] .login-brand-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

html[data-ui-theme] .login-brand-trust-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-primary) 13%, transparent);
}

html[data-ui-theme] .login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 4.2vw, 64px);
    background: var(--login-surface);
}

html[data-ui-theme] .unified-login-heading {
    margin-bottom: 30px;
    text-align: left;
}

html[data-ui-theme] .unified-login-heading h1 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: clamp(27px, 2.7vw, 34px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.2;
}

html[data-ui-theme] .unified-login-heading p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

html[data-ui-theme] .unified-login-field label,
html[data-ui-theme] fieldset legend {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

html[data-ui-theme] .account-type-selector {
    gap: 10px;
    margin: 14px 0 24px;
}

html[data-ui-theme] .account-type-option {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--login-surface-border);
    border-radius: 12px;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--login-bg) 45%, var(--login-surface));
    font-size: 13px;
    font-weight: 650;
}

html[data-ui-theme] .account-type-option:has(input:checked) {
    border-color: var(--accent-primary) !important;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--accent-primary) 11%, var(--login-surface)) !important;
}

html[data-ui-theme] .unified-login-field {
    margin-bottom: 21px;
}

html[data-ui-theme] .unified-login-field input {
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    background: var(--input-bg);
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

html[data-ui-theme] .unified-login-field input::placeholder {
    color: var(--text-muted);
    opacity: .9;
}

html[data-ui-theme] .unified-login-field input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--input-focus);
    outline: none;
}

html[data-ui-theme] .unified-password-wrap input {
    padding-right: 78px;
}

html[data-ui-theme] .unified-password-toggle {
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 750;
}

html[data-ui-theme] .unified-password-toggle:hover {
    background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

html[data-ui-theme] .login-button {
    min-height: 51px;
    width: 100%;
    margin-top: 5px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(115deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-primary) 20%, transparent);
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

html[data-ui-theme] .login-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 13px 27px color-mix(in srgb, var(--accent-primary) 25%, transparent);
}

html[data-ui-theme] .login-button:active {
    transform: translateY(0);
}

html[data-ui-theme="olive-black"] .login-button {
    color: #11140e;
}

html[data-ui-theme] .unified-login-footer {
    min-height: 20px;
}

html[data-ui-theme] .unified-login-footer a {
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 650;
}

html[data-ui-theme] .unified-login-security {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    html[data-ui-theme] .unified-login-shell {
        grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
        width: calc(100% - 36px);
        min-height: auto;
        margin: 18px auto;
    }

    html[data-ui-theme] .login-brand-panel {
        padding: 32px 25px;
    }

    html[data-ui-theme] .login-brand-mark {
        margin-bottom: 30px;
    }

    html[data-ui-theme] .login-brand-title {
        font-size: clamp(30px, 4vw, 42px);
    }

    html[data-ui-theme] .login-form-panel {
        padding: 34px 28px;
    }

    html[data-ui-theme] .login-brand-visual {
        height: 165px;
    }
}

@media (max-width: 680px) {
    html[data-ui-theme] .unified-login-shell {
        display: flex;
        flex-direction: column;
        width: calc(100% - 24px);
        margin: 12px auto;
        border-radius: 22px;
    }

    html[data-ui-theme] .login-brand-panel {
        min-height: auto;
        padding: 25px 24px 20px;
    }

    html[data-ui-theme] .login-brand-mark {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
        border-radius: 14px;
        font-size: 14px;
    }

    html[data-ui-theme] .login-brand-eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
    }

    html[data-ui-theme] .login-brand-title {
        font-size: clamp(28px, 7vw, 38px);
    }

    html[data-ui-theme] .login-brand-description {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.65;
    }

    html[data-ui-theme] .login-brand-visual {
        display: none;
    }

    html[data-ui-theme] .login-brand-trust {
        margin-top: 18px;
        font-size: 11px;
    }

    html[data-ui-theme] .login-form-panel {
        padding: 27px 24px 28px;
    }

    html[data-ui-theme] .unified-login-heading {
        margin-bottom: 23px;
    }

    html[data-ui-theme] .unified-login-heading h1 {
        font-size: 27px;
    }

    html[data-ui-theme] .unified-login-security {
        margin-top: 20px;
    }
}

@media (max-width: 380px) {
    html[data-ui-theme] .unified-login-shell {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 18px;
    }

    html[data-ui-theme] .login-brand-panel {
        padding: 20px 18px 17px;
    }

    html[data-ui-theme] .login-form-panel {
        padding: 23px 18px;
    }

    html[data-ui-theme] .account-type-selector {
        gap: 7px;
    }

    html[data-ui-theme] .account-type-option {
        gap: 6px;
        padding: 9px 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ui-theme] .login-visual-orbit,
    html[data-ui-theme] .login-visual-sheet,
    html[data-ui-theme] .login-button,
    html[data-ui-theme] .unified-login-field input {
        transition: none !important;
        animation: none !important;
    }
}
/* LOGIN FEATURE CARDS — BUILD 2026.10.26.003 */
html[data-ui-theme] .login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

html[data-ui-theme] .login-feature-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid color-mix(in srgb, var(--accent-primary) 17%, var(--border-color));
    border-radius: 13px;
    background: color-mix(in srgb, var(--login-surface) 82%, var(--accent-primary) 6%);
    box-shadow: 0 5px 16px rgb(0 0 0 / 3%);
}

html[data-ui-theme] .login-feature-card-wide {
    grid-column: 1 / -1;
}

html[data-ui-theme] .login-feature-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--accent-primary) 25%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.03em;
}

html[data-ui-theme] .login-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

html[data-ui-theme] .login-feature-copy strong {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html[data-ui-theme] .login-feature-copy small {
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    html[data-ui-theme] .login-feature-grid {
        gap: 8px;
        margin-top: 18px;
    }

    html[data-ui-theme] .login-feature-card {
        gap: 8px;
        padding: 11px 9px;
    }

    html[data-ui-theme] .login-feature-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 680px) {
    html[data-ui-theme] .login-feature-grid {
        gap: 8px;
        margin-top: 16px;
    }

    html[data-ui-theme] .login-feature-card {
        padding: 10px 9px;
        border-radius: 11px;
    }

    html[data-ui-theme] .login-feature-copy strong {
        font-size: 11px;
    }

    html[data-ui-theme] .login-feature-copy small {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    html[data-ui-theme] .login-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-ui-theme] .login-feature-card-wide {
        grid-column: auto;
    }
}


/* LOGIN APPROVED BENEFITS STRIP — BUILD 2026.10.26.005 */
html[data-ui-theme] .login-security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
}

html[data-ui-theme] .login-security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--border-color, rgba(128, 128, 128, .3));
    border-radius: 999px;
    color: var(--text-color, inherit);
    font-size: .75rem;
    line-height: 1.3;
}

html[data-ui-theme] .login-live-clock {
    margin: 10px 0 14px;
    color: var(--muted-text-color, inherit);
    font-size: .8rem;
    text-align: center;
    overflow-wrap: anywhere;
}

html[data-ui-theme] .unified-login-security p {
    margin: 6px 0;
}

html[data-ui-theme] .unified-login-security a {
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
}

html[data-ui-theme] .unified-login-security a:hover {
    text-decoration: underline;
}

@media (max-width: 380px) {
    html[data-ui-theme] .login-security-badges {
        gap: 6px;
    }

    html[data-ui-theme] .login-security-badge {
        padding: 6px 8px;
        font-size: .7rem;
    }
}

/* LOGIN BENEFITS STRIP — BUILD 2026.10.26.006 */
html[data-ui-theme] .login-benefits-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, rgba(128, 128, 128, .25));
    border-bottom: 1px solid var(--border-color, rgba(128, 128, 128, .25));
}

html[data-ui-theme] .login-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color, inherit);
    font-size: .82rem;
}

html[data-ui-theme] .login-benefit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color, rgba(128, 128, 128, .3));
    font-size: .9rem;
}

html[data-ui-theme] .login-benefit strong {
    font-weight: 600;
}

@media (max-width: 680px) {
    html[data-ui-theme] .login-benefits-strip {
        justify-content: flex-start;
        gap: 10px 16px;
        padding: 14px;
    }

    html[data-ui-theme] .login-benefit {
        font-size: .78rem;
    }
}

@media (max-width: 380px) {
    html[data-ui-theme] .login-benefits-strip {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* REMEMBER ME — BUILD 2026.10.26.001 */
.remember-me-row {
    display: flex;
    align-items: center;
    margin: 12px 0 16px;
    font-size: 0.92rem;
}

.remember-me-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--login-accent, #55734a);
}
