:root {
            --bg: #05070d;
            --panel: rgba(255, 255, 255, 0.06);
            --line: rgba(255, 255, 255, 0.14);
            --text: #f7fbff;
            --muted: #aab6c8;
            --cyan: #18d6d1;
            --blue: #1b74ff;
            --danger: #ff8a8a;
        }

        * {
            box-sizing: border-box;
        }

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

        body {
            background:
                linear-gradient(135deg, rgba(24, 214, 209, 0.12), transparent 34%),
                linear-gradient(225deg, rgba(139, 44, 255, 0.14), transparent 36%),
                linear-gradient(180deg, #070a13 0%, var(--bg) 66%, #02030a 100%);
            color: var(--text);
            font-family: Inter, "Segoe UI", Arial, sans-serif;
        }

        body::before {
            display: none;
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: 72px 72px;
            mask-image: linear-gradient(to bottom, transparent, black 16%, black 76%, transparent);
        }

        .page {
            position: relative;
            width: min(980px, calc(100vw - 32px));
            min-height: 100vh;
            margin: 0 auto;
            display: grid;
            grid-template-rows: auto 1fr;
            padding: 26px 0 34px;
        }

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .brand,
        .back-link {
            color: var(--text);
            text-decoration: none;
        }

        .brand {
            font-size: 1rem;
            font-weight: 800;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.055);
            color: var(--muted);
            font-size: 0.92rem;
            font-weight: 800;
            backdrop-filter: blur(16px);
            transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
        }

        .back-link:hover,
        .back-link:focus-visible {
            color: var(--text);
            border-color: rgba(24, 214, 209, 0.48);
            background: rgba(255, 255, 255, 0.09);
            transform: translateY(-1px);
            outline: none;
        }

        main {
            display: grid;
            grid-template-columns: minmax(0, 0.78fr) minmax(330px, 0.68fr);
            align-items: center;
            gap: 56px;
            padding: 46px 0 20px;
        }

        .intro {
            display: grid;
            gap: 20px;
        }

        .logo {
            width: 270px;
            height: auto;
            display: block;
            border-radius: 8px;
        }

        .eyebrow {
            width: fit-content;
            margin: 0;
            padding: 7px 11px;
            border: 1px solid rgba(24, 214, 209, 0.36);
            border-radius: 999px;
            color: #baf8f6;
            background: rgba(24, 214, 209, 0.08);
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        h1 {
            max-width: 560px;
            margin: 0;
            font-size: 4.35rem;
            line-height: 0.96;
            letter-spacing: 0;
        }

        .lead {
            max-width: 540px;
            margin: 0;
            color: var(--muted);
            font-size: 1.08rem;
            line-height: 1.6;
        }

        .form-panel {
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--panel);
            box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
            backdrop-filter: blur(16px);
            padding: 24px;
        }

        form {
            display: grid;
            gap: 14px;
        }

        label {
            display: grid;
            gap: 7px;
            color: var(--muted);
            font-size: 0.86rem;
            text-align: left;
        }

        input {
            width: 100%;
            min-height: 48px;
            padding: 0 13px;
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.28);
            color: var(--text);
            font: inherit;
            outline: none;
        }

        input:focus {
            border-color: rgba(24, 214, 209, 0.7);
            box-shadow: 0 0 0 3px rgba(24, 214, 209, 0.12);
        }

        /* cvp-password-autofill-fix */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-text-fill-color: var(--text) !important;
            caret-color: var(--text);
            -webkit-box-shadow: 0 0 0 1000px #111620 inset !important;
            box-shadow: 0 0 0 1000px #111620 inset !important;
            border-color: rgba(24, 214, 209, 0.38);
            transition: background-color 9999s ease-out 0s;
        }

        input:autofill {
            color: var(--text) !important;
            box-shadow: 0 0 0 1000px #111620 inset !important;
        }

        .password-field {
            position: relative;
        }

        .password-field input {
            padding-right: 70px;
        }

        .show-password {
            position: absolute;
            z-index: 2;
            right: 8px;
            bottom: 7px;
            min-height: 34px;
            padding: 0 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: var(--text);
            background: #18202b;
            cursor: pointer;
            font-weight: 800;
        }

        .show-password:hover,
        .show-password:focus-visible {
            border-color: rgba(24, 214, 209, 0.62);
            background: #202c3a;
            outline: none;
        }

        .submit {
            min-height: 52px;
            margin-top: 4px;
            border: 1px solid rgba(255, 255, 255, 0.44);
            border-radius: 8px;
            color: #031018;
            background: linear-gradient(135deg, rgba(24, 214, 209, 0.96), rgba(27, 116, 255, 0.9));
            cursor: pointer;
            font: inherit;
            font-weight: 900;
            transition: transform 180ms ease, filter 180ms ease;
        }

        .submit:hover,
        .submit:focus-visible {
            transform: translateY(-2px);
            filter: brightness(1.05);
            outline: none;
        }

        .message {
            display: none;
            margin: 0;
            padding: 12px;
            border: 1px solid rgba(255, 138, 138, 0.42);
            border-radius: 8px;
            color: var(--danger);
            background: rgba(255, 69, 69, 0.1);
            font-size: 0.92rem;
            line-height: 1.4;
            text-align: left;
        }

        .message.visible {
            display: block;
        }

        .message.success {
            display: block;
            border-color: rgba(133, 244, 200, 0.36);
            color: #85f4c8;
            background: rgba(24, 214, 209, 0.08);
        }

        .account-link {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.45;
            text-align: left;
        }

        .account-link a {
            color: #baf8f6;
            font-weight: 800;
            text-decoration: none;
        }

        .account-link a:hover,
        .account-link a:focus-visible {
            text-decoration: underline;
            outline: none;
        }

        .link-button {
            width: fit-content;
            border: 0;
            padding: 0;
            color: #baf8f6;
            background: transparent;
            cursor: pointer;
            font: inherit;
            font-weight: 800;
            text-align: left;
        }

        .link-button:hover,
        .link-button:focus-visible {
            text-decoration: underline;
            outline: none;
        }

        .forgot-panel {
            display: none;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .forgot-panel.active {
            display: block;
        }

        .portal-paused form label,
        .portal-paused form .submit,
        .portal-paused form .account-link,
        .portal-paused .forgot-panel {
            display: none;
        }

        @media (max-width: 840px) {
            main {
                grid-template-columns: 1fr;
                gap: 30px;
                align-items: start;
            }

            h1 {
                max-width: 620px;
                font-size: 3.45rem;
                line-height: 1;
            }
        }

        @media (max-width: 560px) {
            .page {
                width: min(100% - 24px, 980px);
                padding-top: 12px;
            }

            header {
                justify-content: flex-end;
                margin-bottom: 0;
            }

            main {
                gap: 28px;
                padding-top: 12px;
            }

            .intro {
                gap: 16px;
            }

            .logo {
                width: 200px;
                max-width: 76vw;
                justify-self: center;
            }

            h1 {
                font-size: 2.28rem;
                line-height: 1.04;
            }

            .lead {
                font-size: 1rem;
                line-height: 1.5;
            }

            .form-panel {
                padding: 18px;
            }
        }
