* {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            /* stylelint-disable color-no-hex */
            :root {
                /* DataJam Defaults design tokens */
                --brand: #e62f6e;
                --brand-2: #e94b52;
                --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
                --brand-line: color-mix(in srgb, var(--brand) 30%, transparent);
                --on-brand: #fefaf9;
                --paper: #fafafa;
                --surface: #fefaf9;
                --surface-2: #f4f4f5;
                --ink: #0a0c11;
                --ink-2: #4b5563;
                --ink-3: #9ca3af;
                --line: rgb(10 12 17 / 10%);
                --line-2: rgb(10 12 17 / 6%);
                --ok: #16a34a;
                --ok-soft: #dcfce7;
                --dv-1: #5e2bff;
                --dv-2: #edba06;
                --dv-3: #15e0bc;
                --dv-4: #78c534;
                --dv-5: #e62f6e;
                --dv-6: #3b82f6;
                --dv-7: #f97316;
                --dv-8: #a855f7;
                --shadow:
                    0 4px 6px -1px rgb(10 12 17 / 10%),
                    0 2px 4px -2px rgb(10 12 17 / 10%);
                --shadow-lg:
                    0 10px 15px -3px rgb(10 12 17 / 10%),
                    0 4px 6px -4px rgb(10 12 17 / 10%);
                --shadow-xl:
                    0 20px 25px -5px rgb(10 12 17 / 10%),
                    0 8px 10px -6px rgb(10 12 17 / 10%);
                --body: 'Poppins', system-ui, sans-serif;
                --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
                --r: 16px;
                --r-sm: 8px;
                --r-full: 9999px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
            }

            html[data-theme='dark'] {
                --paper: #0a0c11;
                --surface: #111827;
                --surface-2: #1f2937;
                --ink: #fefaf9;
                --ink-2: #d1d5db;
                --ink-3: #6b7280;
                --line: rgb(255 255 255 / 11%);
                --line-2: rgb(255 255 255 / 6%);
                --ok: #4ade80;
                --ok-soft: color-mix(in srgb, var(--ok) 14%, transparent);
                --shadow:
                    0 1px 2px rgb(0 0 0 / 30%),
                    0 14px 40px -18px rgb(0 0 0 / 70%);
                --shadow-lg:
                    0 1px 2px rgb(0 0 0 / 30%),
                    0 14px 40px -18px rgb(0 0 0 / 70%);
                --shadow-xl:
                    0 1px 2px rgb(0 0 0 / 30%),
                    0 20px 50px -18px rgb(0 0 0 / 80%);
            }
            /* stylelint-enable color-no-hex */

            body {
                font-family: var(--body);
                background: rgb(10 12 17);
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 1rem;
                color: rgb(254 250 249);
                background-image:
                    radial-gradient(
                        1200px 600px at 88% -8%,
                        color-mix(in srgb, var(--brand) 14%, transparent),
                        transparent 60%
                    ),
                    radial-gradient(
                        900px 500px at -6% 4%,
                        rgb(255 255 255 / 4%),
                        transparent 55%
                    );
            }

            /* Main container */
            .nexus-card {
                max-width: 1360px;
                width: 100%;
                max-height: calc(100vh - 2rem);
                background: var(--surface);
                border-radius: 24px;
                border: 1px solid var(--line);
                box-shadow: var(--shadow-xl);
                display: grid;
                grid-template-columns: 1.4fr 1fr;
                overflow: hidden auto;
                transition: box-shadow 0.25s, border-color 0.25s, opacity 0.25s;
            }

            /* ========== LEFT PANEL ========== */
            .panel-left {
                padding: 3rem 3rem 2.2rem;
                background: rgb(17 24 39);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                border-right: none;
                position: relative;
                overflow: hidden;
            }

            .panel-left::before {
                content: '';
                position: absolute;
                top: -30%;
                right: -20%;
                width: 400px;
                height: 400px;
                background: radial-gradient(
                    circle,
                    color-mix(in srgb, var(--brand) 14%, transparent),
                    transparent 70%
                );
                pointer-events: none;
                border-radius: 50%;
                display: block;
            }

            .panel-left::after {
                content: '';
                position: absolute;
                bottom: -10%;
                left: -10%;
                width: 300px;
                height: 300px;
                background: radial-gradient(
                    circle,
                    color-mix(in srgb, var(--dv-1) 10%, transparent),
                    transparent 70%
                );
                pointer-events: none;
                border-radius: 50%;
                display: block;
            }

            .panel-left .hero-bg-video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                z-index: 1;
                opacity: 0.16;
                filter: none;
                pointer-events: none;
                transition: opacity 0.3s ease, filter 0.3s ease;
            }

            .brand-section {
                position: relative;
                z-index: 2;
            }

            .logo img {
                height: 1.75rem;
                width: auto;
            }

            .brand-section .tagline {
                color: rgb(107 114 128);
                font-weight: 500;
                font-size: 0.85rem;
                letter-spacing: 0.4px;
                text-transform: uppercase;
                margin-top: 0.2rem;
            }

            .hero-content {
                margin: 1.6rem 0 1.2rem;
                position: relative;
                z-index: 2;
            }

            .hero-content .main-headline {
                font-size: 2.3rem;
                font-weight: 700;
                line-height: 1.2;
                letter-spacing: -0.03em;
                color: rgb(254 250 249);
            }

            .main-headline .highlight {
                background: linear-gradient(135deg, var(--brand), var(--brand-2));
                background-clip: text;
                -webkit-text-fill-color: transparent;
                /* stylelint-disable-next-line property-no-vendor-prefix */
                -webkit-background-clip: text;
            }

            .hero-content .description {
                color: rgb(209 213 219);
                font-size: 0.95rem;
                line-height: 1.6;
                max-width: 90%;
                margin: 0.7rem 0 1.3rem;
            }

            /* Product preview: a small illustrative rendition of the
               Dashboard's hero-stat + stacked-bar pattern, so the login
               page's visual language matches the app it leads into.
               Values are static/illustrative — there is no live session
               on this page. */
            .product-preview {
                position: relative;
                z-index: 2;
                background: var(--surface-2);
                border: 1px solid var(--line);
                border-radius: var(--r-sm);
                padding: 1rem 1.1rem;
                margin-bottom: 1.3rem;
            }

            .product-preview .pp-label {
                font-size: 0.65rem;
                font-weight: 600;
                letter-spacing: 0.06em;
                text-transform: uppercase;
                color: var(--ink-3);
                margin-bottom: 0.6rem;
            }

            .product-preview .pp-stats {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 0.6rem;
                margin-bottom: 0.75rem;
            }

            .product-preview .pp-stat {
                background: var(--surface);
                border-radius: var(--r-sm);
                padding: 0.5rem 0.6rem;
            }

            .product-preview .pp-stat .k {
                font-size: 0.65rem;
                color: var(--ink-3);
                margin-bottom: 0.15rem;
            }

            .product-preview .pp-stat .v {
                font-size: 1rem;
                font-weight: 700;
                color: var(--ink);
            }

            .product-preview .pp-bar {
                display: flex;
                height: 7px;
                border-radius: var(--r-full);
                overflow: hidden;
            }

            .product-preview .pp-bar span {
                height: 100%;
            }

            .capability-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.7rem 1.4rem;
                margin-top: 0.5rem;
            }

            .capability-grid .cap-item {
                display: flex;
                align-items: center;
                gap: 0.6rem;
                font-size: 0.86rem;
                font-weight: 500;
                color: rgb(209 213 219);
            }

            .cap-item i {
                color: var(--brand);
                font-size: 0.95rem;
                width: 1.3rem;
                text-align: center;
            }

            /* ========== RIGHT PANEL ========== */
            .panel-right {
                padding: 3rem 3rem 2.2rem;
                background: var(--surface);
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .panel-right .welcome {
                margin-bottom: 1.6rem;
            }

            .panel-right .welcome h3 {
                font-size: 1.75rem;
                font-weight: 700;
                color: var(--ink);
                letter-spacing: -0.02em;
            }

            .welcome p {
                color: var(--ink-2);
                font-size: 0.88rem;
                margin-top: 0.35rem;
                line-height: 1.5;
            }

            .input-group {
                margin-bottom: 1.15rem;
            }

            .input-group label {
                display: block;
                font-size: 0.72rem;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                color: var(--ink-2);
                margin-bottom: 0.42rem;
            }

            .input-group .input-wrap {
                position: relative;
                display: flex;
                align-items: center;
                background: var(--surface-2);
                border-radius: var(--r-full);
                border: 1px solid var(--line);
                transition: 0.25s;
                overflow: hidden; /* Fix: Clip any rectangular autofill backgrounds */
            }

            .input-group .input-wrap:focus-within {
                border-color: var(--brand);
                box-shadow: 0 0 0 4px var(--brand-soft);
                background: var(--surface);
            }

            .input-group .input-wrap .prefix-icon {
                padding: 0 0 0 1.2rem;
                color: var(--ink-3);
                font-size: 0.95rem;
            }

            .input-group .input-wrap input {
                border: none;
                background: transparent;
                padding: 0.78rem 1rem 0.78rem 0.8rem;
                width: 100%;
                font-size: 0.95rem;
                font-weight: 500;
                color: var(--ink);
                outline: none;
                font-family: var(--body);
                border-radius: inherit; /* Fix: Match rounded corners of parent wrap */
            }

            .input-group .input-wrap input::placeholder {
                color: var(--ink-3);
                font-weight: 400;
            }

            /* Autocomplete/Autofill Override to prevent bright white background */
            /* stylelint-disable declaration-no-important */
            .input-group .input-wrap input:-webkit-autofill,
            .input-group .input-wrap input:-webkit-autofill:hover,
            .input-group .input-wrap input:-webkit-autofill:focus,
            .input-group .input-wrap input:-webkit-autofill:active {
                box-shadow: 0 0 0 1000px var(--surface-2) inset !important;
                -webkit-text-fill-color: var(--ink) !important;
                transition: background-color 5000s ease-in-out 0s;
            }

            .input-group .input-wrap:focus-within input:-webkit-autofill {
                box-shadow: 0 0 0 1000px var(--surface) inset !important;
            }
            /* stylelint-enable declaration-no-important */

            .input-group .input-wrap .toggle-vis {
                background: transparent;
                border: none;
                padding: 0 1.4rem 0 0.2rem;
                color: var(--ink-3);
                cursor: pointer;
                font-size: 1.1rem;
                transition: 0.2s;
            }

            .input-group .input-wrap .toggle-vis:hover {
                color: var(--ink);
            }

            .form-actions {
                display: flex;
                flex-direction: column;
                gap: 0.6rem;
                margin-top: 0.8rem;
            }

            .btn-primary {
                width: 100%;
                background: var(--brand);
                border: none;
                padding: 0.92rem;
                border-radius: var(--r-full);
                font-weight: 600;
                font-size: 1rem;
                letter-spacing: 0.02em;
                color: var(--on-brand);
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.7rem;
                cursor: pointer;
                transition: 0.25s;
                box-shadow: 0 8px 28px -8px color-mix(in srgb, var(--brand) 45%, transparent);
                font-family: var(--body);
            }

            .btn-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--brand) 55%, transparent);
                filter: brightness(1.03);
            }

            .btn-primary:active {
                transform: scale(0.97);
            }

            .forgot-row {
                display: flex;
                justify-content: flex-end;
                margin-top: 0.2rem;
            }

            .forgot-row a {
                color: var(--ink-2);
                text-decoration: none;
                font-size: 0.85rem;
                font-weight: 500;
                transition: 0.2s;
            }

            .divider-line {
                display: flex;
                align-items: center;
                gap: 0.8rem;
                margin: 1.8rem 0 1.2rem;
                color: var(--ink-3);
                font-size: 0.7rem;
                letter-spacing: 0.6px;
            }

            .divider-line::before,
            .divider-line::after {
                content: '';
                flex: 1;
                height: 1px;
                background: var(--line);
            }

            .signup-text {
                text-align: center;
                font-size: 0.95rem;
                color: var(--ink-2);
            }

            .signup-text a {
                color: var(--brand);
                font-weight: 600;
                text-decoration: none;
                border-bottom: 1px dashed var(--brand-line);
                transition: 0.2s;
            }

            .footer-left a {
                color: rgb(107 114 128);
                text-decoration: none;
                transition: 0.2s;
                display: inline-flex;
                align-items: center;
                gap: 0.3rem;
            }

            .forgot-row a:hover {
                color: var(--brand);
            }

            .signup-text a:hover {
                color: var(--brand-2);
                border-bottom-color: var(--brand-2);
            }

            .footer-left a:hover {
                color: rgb(254 250 249);
            }

            /* Status bar */
            .status-footer {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-top: 1.4rem;
                padding-top: 1rem;
                border-top: 1px solid var(--line);
                font-size: 0.75rem;
                color: var(--ink-3);
                flex-wrap: wrap;
                gap: 0.5rem 1.2rem;
            }

            .status-footer .left-group {
                display: flex;
                align-items: center;
                gap: 1.2rem;
            }

            .status-footer .left-group .search-hint {
                display: flex;
                align-items: center;
                gap: 0.4rem;
                background: var(--surface-2);
                padding: 0.2rem 1rem;
                border-radius: var(--r-full);
                border: 1px solid var(--line);
            }

            .search-hint i {
                color: var(--brand);
                font-size: 0.65rem;
            }

            .status-footer .right-group {
                display: flex;
                align-items: center;
                gap: 1.2rem;
            }

            .status-footer .right-group .lang {
                display: flex;
                align-items: center;
                gap: 0.3rem;
            }

            .status-footer .right-group .time-display {
                background: var(--surface-2);
                padding: 0.15rem 0.9rem;
                border-radius: var(--r-full);
                border: 1px solid var(--line);
                font-family: var(--mono);
            }

            .build-badge {
                display: flex;
                align-items: center;
                gap: 0.8rem;
                font-size: 0.72rem;
                color: var(--ink-3);
                margin-top: 0.8rem;
            }

            .build-badge i {
                color: var(--brand);
            }

            .build-badge .spacer {
                flex: 1;
            }

            .footer-left {
                margin-top: 1.4rem;
                display: flex;
                align-items: center;
                gap: 1.8rem;
                font-size: 0.8rem;
                color: rgb(107 114 128);
                border-top: 1px solid rgb(255 255 255 / 11%);
                padding-top: 1.1rem;
                flex-wrap: wrap;
                position: relative;
                z-index: 2;
            }

            html[data-theme='light'] .footer-left {
                border-top: none;
            }

            .footer-left .version-chip {
                background: var(--brand-soft);
                padding: 0.2rem 0.9rem;
                border-radius: var(--r-full);
                border: 1px solid var(--brand-line);
                color: var(--brand);
                font-size: 0.75rem;
                font-family: var(--mono);
            }


            /* ========== RESPONSIVE ========== */
            @media (width <= 1080px) {
                .nexus-card {
                    grid-template-columns: 1fr;
                    max-width: 600px;
                    border-radius: var(--r);
                }

                .panel-left {
                    border-right: none;
                    border-bottom: 1px solid var(--line);
                    padding: 1.6rem 1.5rem;
                }

                .panel-right {
                    padding: 1.6rem 1.5rem;
                }

                .hero-content .main-headline {
                    font-size: 1.7rem;
                }

                .hero-content .description {
                    max-width: 100%;
                }

                .capability-grid {
                    grid-template-columns: 1fr 1fr;
                }
            }

            @media (width <= 480px) {
                .panel-left,
                .panel-right {
                    padding: 1.2rem 1rem;
                }

                .hero-content .main-headline {
                    font-size: 1.5rem;
                }

                .capability-grid {
                    grid-template-columns: 1fr;
                }

                .brand-section .logo {
                    font-size: 1.3rem;
                }

                .status-footer {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 0.4rem;
                }

                .status-footer .left-group {
                    flex-wrap: wrap;
                }
            }

            /* Theme toggle button */
            .theme-toggle-login {
                position: absolute;
                top: 1.75rem;
                right: 1.75rem;
                background: var(--surface-2);
                border: 1px solid var(--line);
                color: var(--ink-2);
                width: 2.4rem;
                height: 2.4rem;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: background-color 0.2s, color 0.2s, transform 0.2s;
                z-index: 10;
            }

            .theme-toggle-login:hover {
                background: var(--line);
                color: var(--ink);
                transform: scale(1.05);
            }

            /* Desktop/Mobile display toggles */
            /* stylelint-disable declaration-no-important */
            .nexus-desktop-only {
                display: block;
            }

            .nexus-mobile-only {
                display: none !important;
            }
            /* stylelint-enable declaration-no-important */

            @media (width <= 640px) {
                /* stylelint-disable declaration-no-important */
                .nexus-desktop-only {
                    display: none !important;
                }

                .nexus-mobile-only {
                    display: flex !important;
                    flex-direction: column;
                    justify-content: space-between;
                    min-height: calc(100vh - 2rem);
                    min-height: calc(100dvh - 2rem);
                    width: 100%;
                    max-width: 480px;
                    margin: 0 auto;
                }
                
                body {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 1rem;
                }
                
                /* Mobile specific styles */
                .nexus-mobile-only .m-header {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 1.1rem;
                    width: 100%;
                }

                .nexus-mobile-only .m-logo {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    font-size: 1.15rem;
                    font-weight: 700;
                    letter-spacing: -0.02em;
                    color: var(--ink);
                }

                .nexus-mobile-only .m-logo img {
                    height: 1.5rem;
                    width: auto;
                }

                .nexus-mobile-only .theme-toggle-mobile {
                    background: var(--surface-2);
                    border: 1px solid var(--line);
                    color: var(--ink-2);
                    width: 2.5rem;
                    height: 2.5rem;
                    min-width: 44px;
                    min-height: 44px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                }

                .nexus-mobile-only .m-card {
                    background: var(--surface);
                    border: 1px solid var(--line);
                    border-radius: var(--r);
                    box-shadow: var(--shadow-lg);
                    padding: 1.4rem 1.25rem;
                    width: 100%;
                }

                .nexus-mobile-only .m-card .welcome h2 {
                    font-size: 1.25rem;
                    font-weight: 700;
                    color: var(--ink);
                }

                .nexus-mobile-only .m-card .welcome p {
                    color: var(--ink-2);
                    font-size: 0.85rem;
                    margin-top: 0.25rem;
                    margin-bottom: 1.3rem;
                }

                .nexus-mobile-only .input-group {
                    margin-bottom: 1.05rem;
                }

                .nexus-mobile-only .input-group label {
                    display: block;
                    font-size: 0.72rem;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    color: var(--ink-2);
                    margin-bottom: 0.4rem;
                }

                .nexus-mobile-only .input-group .input-wrap {
                    position: relative;
                    display: flex;
                    align-items: center;
                    background: var(--surface-2);
                    border-radius: var(--r-sm);
                    border: 1px solid var(--line);
                    transition: 0.2s;
                    overflow: hidden;
                }

                .nexus-mobile-only .input-group .input-wrap:focus-within {
                    border-color: var(--brand);
                    box-shadow: 0 0 0 4px var(--brand-soft);
                    background: var(--surface);
                }

                .nexus-mobile-only .input-group .input-wrap .prefix-icon {
                    padding: 0 0 0 1rem;
                    color: var(--ink-3);
                    font-size: 1rem;
                    flex: 0 0 auto;
                }

                .nexus-mobile-only .input-group .input-wrap input {
                    border: none;
                    background: transparent;
                    font-size: 16px;
                    padding: 0.85rem 1rem 0.85rem 0.7rem;
                    width: 100%;
                    font-weight: 500;
                    color: var(--ink);
                    outline: none;
                    font-family: var(--body);
                    border-radius: inherit;
                    min-height: 48px;
                }

                .nexus-mobile-only .input-group .input-wrap input::placeholder {
                    color: var(--ink-3);
                    font-weight: 400;
                }

                .nexus-mobile-only .input-group .input-wrap .toggle-vis {
                    background: transparent;
                    border: none;
                    padding: 0 1rem 0 0.3rem;
                    color: var(--ink-3);
                    cursor: pointer;
                    font-size: 1.15rem;
                    min-width: 44px;
                    min-height: 44px;
                    flex: 0 0 auto;
                }

                .nexus-mobile-only .form-actions {
                    display: flex;
                    flex-direction: column;
                    gap: 0.7rem;
                    margin-top: 0.6rem;
                }

                .nexus-mobile-only .btn-primary {
                    width: 100%;
                    min-height: 50px;
                    background: var(--brand);
                    border: none;
                    border-radius: var(--r-full);
                    font-weight: 600;
                    font-size: 1rem;
                    color: var(--on-brand);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.6rem;
                    cursor: pointer;
                    box-shadow: 0 8px 28px -8px color-mix(in srgb, var(--brand) 45%, transparent);
                    font-family: var(--body);
                }

                .nexus-mobile-only .btn-primary:active {
                    transform: scale(0.98);
                }

                .nexus-mobile-only .forgot-row {
                    display: flex;
                    justify-content: center;
                    margin-top: 0.1rem;
                }

                .nexus-mobile-only .forgot-row a {
                    color: var(--ink-2);
                    text-decoration: none;
                    font-size: 0.88rem;
                    font-weight: 500;
                    padding: 0.4rem;
                }

                .nexus-mobile-only .forgot-row a:active {
                    color: var(--brand);
                }

                .nexus-mobile-only .m-footer {
                    margin-top: 1.1rem;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 0.5rem;
                    font-size: 0.72rem;
                    color: var(--ink-3);
                    padding-bottom: 0.4rem;
                    width: 100%;
                }

                .nexus-mobile-only .m-footer .version-chip {
                    background: var(--brand-soft);
                    padding: 0.2rem 0.8rem;
                    border-radius: var(--r-full);
                    border: 1px solid var(--brand-line);
                    color: var(--brand);
                    font-family: var(--mono);
                }
            }
            /* stylelint-enable declaration-no-important */

            /* Toast Notification System */
            .toast-container {
                position: fixed;
                bottom: 1.5rem;
                right: 1.5rem;
                z-index: 90;
                display: flex;
                flex-direction: column-reverse;
                gap: 0.75rem;
                pointer-events: none;
                max-width: 420px;
                width: calc(100% - 3rem);
            }

            @media (width <= 640px) {
                .toast-container {
                    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
                    right: 1rem;
                    left: 1rem;
                    width: auto;
                    max-width: none;
                }
            }

            .toast {
                pointer-events: auto;
                background: var(--surface);
                color: var(--ink);
                border-radius: 14px;
                padding: 0.95rem 1.15rem;
                border: 1px solid var(--line);
                box-shadow: var(--shadow-xl);
                display: flex;
                align-items: flex-start;
                gap: 0.85rem;
                transform: translateY(20px);
                opacity: 0;
                transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
                backdrop-filter: blur(12px);
            }

            .toast.show {
                transform: translateY(0);
                opacity: 1;
            }

            .toast.hide {
                transform: translateY(20px);
                opacity: 0;
            }

            .toast-error {
                border-left: 4px solid var(--brand);
            }

            .toast-warning {
                border-left: 4px solid var(--dv-2);
            }

            .toast-success {
                border-left: 4px solid var(--ok);
            }

            .toast-info {
                border-left: 4px solid var(--dv-6);
            }

            .toast-icon {
                font-size: 1.2rem;
                margin-top: 2px;
                flex-shrink: 0;
            }

            .toast-error .toast-icon {
                color: var(--brand);
            }

            .toast-warning .toast-icon {
                color: var(--dv-2);
            }

            .toast-success .toast-icon {
                color: var(--ok);
            }

            .toast-info .toast-icon {
                color: var(--dv-6);
            }

            .toast-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .toast-title {
                font-size: 0.88rem;
                font-weight: 600;
                color: var(--ink);
                line-height: 1.3;
            }

            .toast-desc {
                font-size: 0.8rem;
                color: var(--ink-2);
                line-height: 1.4;
                overflow-wrap: anywhere;
            }

            .toast-close-btn {
                background: transparent;
                border: none;
                color: var(--ink-3);
                cursor: pointer;
                padding: 0 4px;
                font-size: 1.25rem;
                line-height: 1;
                border-radius: 4px;
                transition: color 0.2s;
                align-self: flex-start;
            }

            .toast-close-btn:hover {
                color: var(--ink);
            }

            @keyframes login-shake {
                0%, 100% { transform: translateX(0); }

                20%, 60% { transform: translateX(-6px); }

                40%, 80% { transform: translateX(6px); }
            }

            .login-shake {
                animation: login-shake 0.4s ease-in-out;
            }

/* ==========================================================================
   STANDALONE MOBILE LOGIN (login_mobile.html)
   ========================================================================== */
body.login-mobile-page {
    font-family: var(--body);
    background: var(--paper);
    background-image:
        radial-gradient(600px 320px at 90% -6%, var(--brand-soft), transparent 60%),
        radial-gradient(500px 280px at -10% 6%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 55%);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: calc(0.9rem + var(--safe-t)) 1rem calc(0.9rem + var(--safe-b));
}

body.login-mobile-page .input-group {
    margin-bottom: 1.05rem;
}

body.login-mobile-page .form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

body.login-mobile-page .btn-primary {
    width: 100%;
    min-height: 50px;
    background: var(--brand);
    border: none;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 1rem;
    color: var(--on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 8px 28px -8px color-mix(in srgb, var(--brand) 45%, transparent);
    font-family: var(--body);
}

body.login-mobile-page .forgot-row {
    display: flex;
    justify-content: center;
    margin-top: 0.1rem;
}

body.login-mobile-page .forgot-row a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem;
}

body.login-mobile-page .forgot-row a:active {
    color: var(--brand);
}

/* Standalone Mobile Header, Hero, Caps, and Card */
.m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.m-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.m-logo img {
    height: 1.5rem;
    width: auto;
}

.theme-toggle-mobile {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    width: 2.5rem;
    height: 2.5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.m-hero {
    margin-bottom: 1.3rem;
}

.m-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.m-hero h1 .highlight {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-background-clip: text;
}

.m-hero p {
    color: var(--ink-2);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    line-height: 1.5;
}

.m-caps {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
}

.m-caps::-webkit-scrollbar {
    display: none;
}

.m-caps .cap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 0.35rem 0.7rem;
    border-radius: var(--r-full);
    white-space: nowrap;
}

.m-caps .cap i {
    color: var(--brand);
    font-size: 0.78rem;
}

.m-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem 1.25rem;
}

.m-card .welcome h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.m-card .welcome p {
    color: var(--ink-2);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 1.3rem;
}

.m-footer {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--ink-3);
    padding-bottom: 0.4rem;
}

.m-footer .version-chip {
    background: var(--brand-soft);
    padding: 0.2rem 0.8rem;
    border-radius: var(--r-full);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    font-family: var(--mono);
}

@media (height <= 480px) and (orientation: landscape) {
    body.login-mobile-page .m-hero,
    body.login-mobile-page .m-caps {
        display: none;
    }

    body.login-mobile-page {
        justify-content: center;
    }
}

