:root {
            --bg-0: #101527;
            --bg-1: #131a30;
            --bg-2: #2f3442;
            --bg-3: #4f5562;
            --line: rgba(166, 168, 177, 0.24);
            --line-strong: rgba(183, 178, 195, 0.36);
            --text-main: #d8d9df;
            --text-mid: rgba(215, 217, 224, 0.68);
            --text-low: rgba(215, 217, 224, 0.45);
            --accent: #E94B3C;
            --accent-bright: #ff5f49;
        }

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

        body {
            font-family: 'Rajdhani', sans-serif;
            background:
                radial-gradient(ellipse at 20% 25%, rgba(233,75,60,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 75%, rgba(185,190,202,0.09) 0%, transparent 50%),
                var(--bg-0);
            background-size: 170% 170%, 170% 170%, auto;
            animation: menuAmbientDrift 16s ease-in-out infinite alternate;
            color: var(--text-main);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            isolation: isolate;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        main {
            width: 100%;
            display: flex;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .laser-field {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
            opacity: 0.92;
            contain: paint;
            background:
                radial-gradient(180% 120% at 50% 100%, rgba(233, 75, 60, 0.24), rgba(233, 75, 60, 0.1) 52%, rgba(10, 14, 26, 0.46) 100%),
                linear-gradient(180deg, rgba(7, 10, 20, 0.08), rgba(7, 10, 20, 0.2) 42%, rgba(7, 10, 20, 0.56) 100%);
            animation: menuEdgeBarsPulse 4s ease-in-out infinite;
        }

        .laser-field::before,
        .laser-field::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .laser-field::before {
            background: linear-gradient(to top, rgba(20, 9, 16, 0.8) 0%, rgba(13, 9, 18, 0.6) 36%, rgba(10, 8, 18, 0.24) 74%, rgba(9, 9, 18, 0.12) 100%);
            z-index: 2;
        }

        .laser-field::after {
            background:
                linear-gradient(
                    to top,
                    rgba(233, 75, 60, 0.02) 0%,
                    rgba(233, 75, 60, 0.035) 42%,
                    rgba(233, 75, 60, 0.12) 58%,
                    rgba(233, 75, 60, 0.22) 100%
                ),
                radial-gradient(120% 90% at 50% 16%, rgba(233, 75, 60, 0.14), rgba(233, 75, 60, 0));
            z-index: 1;
            animation: menuLaserGlow 2.8s ease-in-out infinite;
        }

        .laser-cube {
            position: absolute;
            left: 0;
            bottom: -220px;
            width: 16px;
            border: 2px solid rgba(233, 75, 60, 0.52);
            border-bottom-color: rgba(233, 75, 60, 0.72);
            background: linear-gradient(to top, rgba(233, 75, 60, 0.16), rgba(233, 75, 60, 0.03));
            box-shadow: 0 0 6px rgba(233, 75, 60, 0.16);
            z-index: 0;
            animation-name: menuCubeRise;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            will-change: transform, opacity;
        }

        .laser-cube::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(233, 75, 60, 0.72), rgba(233, 75, 60, 0));
            background-repeat: no-repeat;
            background-position: top;
            background-size: 100% 34%;
            opacity: 0.14;
        }

        .laser-cube::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: clamp(14%, 22%, 30%);
            border-top: 1px solid rgba(233, 75, 60, 0.34);
            opacity: 0.4;
        }

        @keyframes menuCubeRise {
            0% {
                transform: translate3d(0, 0, 0);
                opacity: 0.42;
            }
            48% {
                opacity: 0.64;
            }
            82% {
                opacity: 0.84;
            }
            100% {
                transform: translate3d(0, -122vh, 0);
                opacity: 0.9;
            }
        }

        @keyframes menuEdgeBarsPulse {
            0%, 100% { opacity: 0.72; }
            50% { opacity: 0.84; }
        }

        @keyframes menuLaserGlow {
            0%, 100% { opacity: 0.38; }
            50% { opacity: 0.58; }
        }

        @keyframes menuAmbientDrift {
            0% { background-position: 0% 0%, 100% 100%, center; }
            100% { background-position: 12% 7%, 86% 90%, center; }
        }

        .login-card {
            background: var(--bg-2);
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 0 6% 6%;
            width: min(94vw, 640px);
            max-width: 640px;
            overflow: hidden;
            box-shadow: 0 34px 88px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04);
            position: relative;
            z-index: 1;
            backdrop-filter: blur(4px);
        }

        .login-card::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(108deg, rgba(233, 75, 60, 0.08), rgba(233, 75, 60, 0) 32%),
                radial-gradient(120% 100% at 90% 0%, rgba(185, 190, 202, 0.12), transparent 55%);
            z-index: 0;
        }

        .login-card > * {
            position: relative;
            z-index: 1;
        }

        .login-logo {
            text-align: center;
            margin: 0 -6% 5%;
            padding: 5% 6% 4%;
            border-bottom: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(224, 68, 42, 0.04), transparent);
            position: relative;
        }

        .login-logo::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
        }

        .login-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.6rem, 5.8vw, 3.15rem);
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
            letter-spacing: 0.16em;
            line-height: 1;
            text-transform: uppercase;
            text-shadow: 0 0 18px rgba(233, 75, 60, 0.18);
        }

        .login-sub {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--text-low);
            text-transform: uppercase;
            letter-spacing: 0.2em;
        }

        .tab-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: var(--bg-1);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 6px;
            margin-bottom: 26px;
            gap: 6px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        .tab {
            padding: 0.95em;
            text-align: center;
            font-size: 1.02rem;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            color: var(--text-mid);
            background: transparent;
            border: none;
            transition: all 0.22s;
        }

        .tab.active {
            background: linear-gradient(180deg, rgba(255, 95, 73, 0.95), rgba(233, 75, 60, 0.94));
            color: #fff;
            box-shadow: 0 10px 24px rgba(233, 75, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
        }

        .field-label {
            font-size: 0.9rem;
            color: var(--text-low);
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.11em;
        }

        .field-input {
            width: 100%;
            background: linear-gradient(180deg, rgba(12, 20, 42, 0.96), rgba(15, 26, 52, 0.92));
            border: 1px solid rgba(166, 168, 177, 0.3);
            border-radius: 12px;
            padding: 0.95em 1em;
            font-size: 1rem;
            color: var(--text-main);
            margin-bottom: 18px;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .field-input::placeholder {
            color: var(--text-low);
        }

        .field-input:focus {
            border-color: var(--accent-bright);
            box-shadow: 0 0 0 3px rgba(233, 75, 60, 0.18), 0 8px 24px rgba(10, 14, 28, 0.42);
        }

        .field-with-icons {
            position: relative;
            margin-bottom: 18px;
        }

        .field-with-icons .field-input {
            margin-bottom: 0;
            padding-right: 50px;
        }

        .field-hint {
            position: absolute;
            right: 3%;
            top: 50%;
            transform: translateY(-50%);
            width: 2rem;
            height: 2rem;
            border: 1px solid var(--line);
            border-radius: 50%;
            background: rgba(19, 26, 48, 0.9);
            color: var(--text-low);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            cursor: help;
            transition: all 0.2s;
        }

        .field-hint:hover,
        .field-hint:focus-visible {
            color: var(--text-main);
            border-color: var(--accent-bright);
            outline: none;
        }

        .field-hint::after {
            content: attr(data-tip);
            position: absolute;
            right: 0;
            bottom: calc(100% + 8px);
            min-width: 220px;
            max-width: 42vw;
            background: rgba(16, 21, 39, 0.96);
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            color: var(--text-main);
            font-size: 12px;
            font-weight: 500;
            line-height: 1.45;
            letter-spacing: 0.02em;
            text-align: left;
            padding: 8px 10px;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.15s ease;
            z-index: 5;
        }

        .field-hint:hover::after,
        .field-hint:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }

        .password-field {
            position: relative;
            margin-bottom: 18px;
        }

        .password-field .field-input {
            margin-bottom: 0;
            padding-right: 86px;
        }

        .password-toggle {
            position: absolute;
            right: 2.5%;
            top: 50%;
            transform: translateY(-50%);
            border: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(19, 26, 48, 0.95), rgba(17, 24, 45, 0.92));
            color: var(--text-mid);
            border-radius: 10px;
            width: 3rem;
            height: 2.4rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .password-toggle:hover {
            color: var(--text-main);
            border-color: var(--accent-bright);
        }

        .password-toggle svg {
            width: 17px;
            height: 17px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .password-toggle .icon-eye {
            display: none;
        }

        .password-toggle .icon-eye-off {
            display: block;
        }

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

        .password-toggle.is-visible .icon-eye-off {
            display: none;
        }

        .password-field.has-hint .field-input {
            padding-right: 9rem;
        }

        .password-field .field-hint {
            right: 5.5rem;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .submit-btn {
            width: 100%;
            padding: 1em;
            background: linear-gradient(180deg, rgba(255, 95, 73, 0.95), rgba(233, 75, 60, 0.94));
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 1.04rem;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
        }

        .submit-btn:hover {
            box-shadow: 0 12px 28px rgba(233, 75, 60, 0.34);
            transform: translateY(-1px);
            filter: brightness(1.06);
        }

        .submit-btn:disabled {
            opacity: 0.72;
            cursor: not-allowed;
            transform: none;
            filter: none;
            box-shadow: none;
        }

        .submit-btn.is-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            pointer-events: none;
        }

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

        .btn-spinner {
            width: 17px;
            height: 17px;
            border: 2.5px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            flex-shrink: 0;
            animation: auth-spin 0.7s linear infinite;
        }

        .divider-line {
            border: none;
            border-top: 1px solid var(--line);
            margin: 20px 0;
        }

        .or-text {
            text-align: center;
            font-size: 0.95rem;
            color: var(--text-low);
            margin: -18px 0 16px 0;
            position: relative;
            font-weight: 500;
        }

        .or-text span {
            background: var(--bg-2);
            padding: 0 10px;
        }

        .social-btn {
            width: 100%;
            padding: 0.85em;
            background: transparent;
            border: 1px solid var(--line);
            border-radius: 10px;
            color: var(--text-mid);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 8px;
        }

        .social-btn:hover {
            background: rgba(166, 168, 177, 0.1);
            border-color: var(--line-strong);
            color: var(--text-main);
        }

        #message {
            margin-top: 16px;
            padding: 0.75em 0.9em;
            border-radius: 6px;
            font-size: 0.92rem;
            text-align: center;
            display: none;
        }

        #message.success {
            background: rgba(185, 190, 202, 0.12);
            border: 1px solid rgba(185, 190, 202, 0.32);
            color: #b9beca;
            display: block;
        }

        #message.error {
            background: rgba(233, 75, 60, 0.12);
            border: 1px solid rgba(233, 75, 60, 0.32);
            color: var(--accent-bright);
            display: block;
        }

        .back-link {
            text-align: center;
            margin-top: 20px;
            font-size: 1rem;
            font-weight: 500;
        }

        .back-link a {
            color: var(--accent-bright);
            text-decoration: none;
            cursor: pointer;
        }

        .back-link a:hover {
            text-decoration: underline;
        }

        .forgot-password {
            text-align: center;
            margin-top: 16px;
            font-size: 1rem;
            font-weight: 500;
        }

        /* ── Quick-login banner ─────────────────────────────── */
        #quick-login-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(233, 75, 60, 0.07);
            border: 1px solid rgba(233, 75, 60, 0.22);
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 14px;
            animation: qlFadeIn 0.35s ease;
        }
        @keyframes qlFadeIn {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .ql-avatar {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, #b33228 100%);
            color: #fff;
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            letter-spacing: 0;
        }
        .ql-info {
            flex: 1;
            min-width: 0;
        }
        .ql-greeting {
            font-size: 0.78rem;
            color: var(--text-low);
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .ql-username {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ql-not-you {
            flex-shrink: 0;
            background: none;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text-low);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 5px 10px;
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.15s, color 0.15s;
        }
        .ql-not-you:hover {
            border-color: var(--line-strong);
            color: var(--text-mid);
        }

        /* ── Save-account prompt toast ──────────────────────── */
        #save-account-prompt {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            animation: sapIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
        }
        #save-account-prompt.sap-out {
            animation: sapOut 0.3s ease forwards;
        }
        @keyframes sapIn {
            from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
            to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1); }
        }
        @keyframes sapOut {
            to { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.96); }
        }
        .sap-card {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(10, 14, 26, 0.97);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 16px;
            padding: 14px 18px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.55);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            min-width: 280px;
            max-width: calc(100vw - 40px);
        }
        .sap-icon { font-size: 1.4rem; line-height: 1; }
        .sap-text { flex: 1; min-width: 0; }
        .sap-title {
            font-size: 1rem;
            font-weight: 700;
            color: #e8eaf0;
        }
        .sap-sub {
            font-size: 0.8rem;
            color: rgba(215,217,224,0.5);
            margin-top: 2px;
        }
        .sap-actions { display: flex; gap: 8px; flex-shrink: 0; }
        .sap-btn {
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.12);
            font-family: inherit;
            font-size: 0.88rem;
            font-weight: 700;
            padding: 7px 16px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .sap-yes {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }
        .sap-yes:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
        .sap-no {
            background: rgba(255,255,255,0.05);
            color: rgba(215,217,224,0.6);
        }
        .sap-no:hover { background: rgba(255,255,255,0.10); color: #e8eaf0; }


        @media (max-width: 720px) {
            .login-card {
                width: 96%;
                padding: 0 5% 5%;
            }

            .login-title {
                letter-spacing: 0.08em;
            }

            .field-hint::after {
                max-width: 70vw;
            }
        }

        /* ── Mobile: phones ≤ 480px ── */
        @media (max-width: 480px) {
            body {
                padding: 12px 8px;
                align-items: center;
            }

            main {
                align-items: center;
            }

            .login-card {
                width: 100%;
                max-height: 92dvh;
                overflow-y: auto;
                padding: 0 5% 8%;
            }

            .login-logo {
                margin: 0 -5% 5%;
                padding: 6% 5% 4%;
            }

            .login-title {
                font-size: clamp(2rem, 9vw, 2.5rem);
                letter-spacing: 0.06em;
            }

            .login-sub {
                font-size: 0.7rem;
                letter-spacing: 0.12em;
            }

            .tab-row {
                margin-bottom: 20px;
            }

            .tab {
                padding: 0.8em;
                font-size: 0.97rem;
            }

            .field-input {
                padding: 0.9em 0.85em;
                font-size: 1rem;
                border-radius: 10px;
            }

            .submit-btn {
                padding: 0.95em;
                font-size: 1rem;
                border-radius: 10px;
            }

            .social-btn {
                padding: 0.85em;
            }

            .field-hint::after {
                max-width: 80vw;
                right: auto;
                left: 0;
            }

            .modal-content {
                padding: 0 5% 6%;
                border-radius: 16px;
                width: 95vw;
            }

            .modal-header {
                margin: 0 -5% 24px;
                padding: 24px 5% 20px;
            }

            .modal-title {
                font-size: clamp(1.7rem, 8vw, 2.4rem);
                letter-spacing: 0.08em;
            }

            .modal-subtitle {
                font-size: 0.65rem;
                letter-spacing: 0.14em;
            }

            .reset-info {
                font-size: 0.88rem;
            }
        }

        /* ── Very small phones ≤ 360px ── */
        @media (max-width: 360px) {
            .login-title {
                font-size: 1.9rem;
            }

            .field-label {
                font-size: 0.82rem;
            }

            .tab {
                padding: 0.7em;
                font-size: 0.9rem;
            }
        }

        .forgot-password a {
            color: var(--accent-bright);
            text-decoration: none;
            cursor: pointer;
        }

        .forgot-password a:hover {
            text-decoration: underline;
        }

        /* Forgot Password Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 100;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--bg-2);
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 0 46px 40px;
            max-width: 720px;
            width: min(92vw, 720px);
            box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
            position: relative;
        }

        .modal-header {
            text-align: center;
            margin: 0 -46px 30px;
            padding: 30px 24px 24px;
            border-bottom: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(224, 68, 42, 0.04), transparent);
            position: relative;
            z-index: 1;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
        }

        .modal-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 52px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
            letter-spacing: 0.16em;
            line-height: 1;
            text-transform: uppercase;
        }

        .modal-subtitle {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            color: var(--text-low);
            text-transform: uppercase;
            letter-spacing: 0.22em;
        }

        .close-modal {
            position: absolute;
            top: 18px;
            right: 18px;
            background: none;
            border: none;
            color: var(--text-low);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            z-index: 3;
        }

        .close-modal:hover {
            color: var(--text-main);
        }

        .reset-info {
            font-size: 15px;
            color: var(--text-mid);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .reset-email-display {
            text-align: center;
            padding: 12px;
            background: var(--bg-1);
            border: 1px solid var(--line);
            border-radius: 10px;
            margin-bottom: 18px;
            color: var(--text-main);
            font-size: 14px;
            word-break: break-all;
        }

        .reset-status {
            margin-top: 16px;
        }

        .reset-status .message {
            padding: 10px 12px;
            border-radius: 6px;
            font-size: 12px;
            text-align: center;
        }

        .reset-status .message.info {
            background: rgba(185, 190, 202, 0.12);
            border: 1px solid rgba(185, 190, 202, 0.32);
            color: #b9beca;
        }

        .reset-status .message.success {
            background: rgba(185, 190, 202, 0.12);
            border: 1px solid rgba(185, 190, 202, 0.32);
            color: #b9beca;
        }

        .reset-status .message.error {
            background: rgba(233, 75, 60, 0.12);
            border: 1px solid rgba(233, 75, 60, 0.32);
            color: var(--accent-bright);
        }


/* ── Responsive: 1920×1080 / 15.6" ── */
@media (max-width: 1600px) {
    .login-card { max-width: 610px; }
    .modal-content { max-width: min(660px, 94vw); }
    .modal-title { font-size: 42px; }
}
@media (max-height: 800px) {
    body { padding: 12px; align-items: flex-start; padding-top: 18px; }
    .login-card { max-width: 590px; }
    .login-logo { margin-bottom: 3%; padding: 3% 6% 3%; }
    .login-title { font-size: clamp(2.1rem, 5vw, 2.65rem); }
}

@media (min-width: 1280px) and (min-height: 860px) {
    .login-card {
        width: min(92vw, 670px);
        max-width: 670px;
        padding: 0 6.4% 5.7%;
    }

    .login-logo {
        margin-bottom: 4.3%;
    }
}

/* Global responsive baseline */
html {
    font-size: clamp(14px, 0.28vw + 12.8px, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Global chat-style typography override */
:root {
    --global-chat-font: 'JetBrains Mono', monospace;
}

html,
body,
body * {
    font-family: var(--global-chat-font) !important;
}

/* ── Native mobile: style the login page like the landing screen ── */
[data-platform="native"] body {
    background: #060816;
    animation: none;
    align-items: center;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

/* Keep laser field but tone it down — same as landing */
[data-platform="native"] .laser-field {
    opacity: 0.8;
}

/* Card fills width like landing, no float */
[data-platform="native"] .login-card {
    width: min(96vw, 400px);
    border-radius: 18px;
    padding: 0 6% 6%;
    background: rgba(20, 24, 48, 0.82);
    backdrop-filter: blur(12px);
    border-color: rgba(233,75,60,0.18);
}

/* Header — big Rajdhani brand like the landing KHET 2.0 */
[data-platform="native"] .login-logo {
    padding: 7% 6% 5%;
    margin: 0 -6% 6%;
}
[data-platform="native"] .login-title {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    color: #E8EAF0 !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
}
[data-platform="native"] .login-sub {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.14em !important;
    color: rgba(215,217,224,0.5) !important;
    text-transform: uppercase !important;
}

/* Tab row — same pill style as landing secondary/primary */
[data-platform="native"] .tab-row {
    border-radius: 14px;
    padding: 5px;
    background: rgba(255,255,255,0.04);
    border-color: rgba(233,75,60,0.2);
}
[data-platform="native"] .tab {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    min-height: 48px;
    border-radius: 10px;
}
[data-platform="native"] .tab.active {
    background: #E94B3C !important;
    box-shadow: none !important;
}

/* Submit button — matches landing .mob-auth-btn.primary */
[data-platform="native"] .submit-btn {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    min-height: 54px;
    border-radius: 12px;
    background: #E94B3C !important;
}

/* Hide guest button + its divider — user comes from the landing which already has it */
[data-platform="native"] .social-btn,
[data-platform="native"] .divider-line,
[data-platform="native"] .or-text { display: none !important; }

/* Inputs — larger touch targets, prevents iOS zoom */
[data-platform="native"] .field-input {
    padding: 0.95em 1em;
    font-size: 16px !important;
    border-radius: 12px;
}

/* "or continue with" bg fix (desktop only, hidden on native) */
[data-platform="native"] .or-text span {
    background: rgba(20,24,48,0.82);
}

/* Misc links */
[data-platform="native"] .back-link,
[data-platform="native"] .forgot-password {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 14px !important;
}

/* ── Reset password modal — same landing aesthetic ── */
[data-platform="native"] .modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(6,8,22,0.75);
    padding: 20px;
}

[data-platform="native"] .modal-content {
    width: min(96vw, 400px);
    border-radius: 18px;
    padding: 0 6% 6%;
    background: rgba(20,24,48,0.94);
    border: 1px solid rgba(233,75,60,0.18);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
}

[data-platform="native"] .modal-header {
    margin: 0 -6% 6%;
    padding: 7% 6% 5%;
    border-bottom: 1px solid rgba(233,75,60,0.18);
    background: linear-gradient(180deg, rgba(233,75,60,0.06), transparent);
    position: relative;
    text-align: center;
}
[data-platform="native"] .modal-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E94B3C, transparent);
}

[data-platform="native"] .modal-title {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    color: #E8EAF0 !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
}
[data-platform="native"] .modal-subtitle {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    color: rgba(215,217,224,0.5) !important;
    text-transform: uppercase !important;
}

[data-platform="native"] .close-modal {
    color: rgba(215,217,224,0.45);
    font-size: 22px;
    top: 14px;
    right: 14px;
}
[data-platform="native"] .close-modal:hover { color: #E8EAF0; }

[data-platform="native"] .reset-info {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 14px !important;
    color: rgba(215,217,224,0.6) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

[data-platform="native"] .reset-status .message.info,
[data-platform="native"] .reset-status .message.success {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
}
[data-platform="native"] .reset-status .message.error {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
}
