        :root {
            --bg: #061225;
            --bg-deep: #030a15;
            --panel: rgba(8, 20, 42, 0.78);
            --panel-strong: rgba(11, 28, 58, 0.92);
            --line: rgba(155, 186, 255, 0.16);
            --line-strong: rgba(155, 186, 255, 0.28);
            --text: #edf4ff;
            --muted: #9ab2d6;
            --accent: #5ca8ff;
            --accent-strong: #1f6fff;
            --accent-soft: rgba(92, 168, 255, 0.12);
            --danger: #ff8e8e;
            --success: #7de2c7;
            --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            color: var(--text);
            font-family: "Avenir Next", "Trebuchet MS", sans-serif;
            background:
                radial-gradient(circle at 15% 20%, rgba(31, 111, 255, 0.28), transparent 22%),
                radial-gradient(circle at 80% 18%, rgba(92, 168, 255, 0.14), transparent 20%),
                radial-gradient(circle at 50% 100%, rgba(10, 68, 180, 0.24), transparent 30%),
                linear-gradient(135deg, var(--bg-deep) 0%, #07172d 48%, var(--bg) 100%);
            overflow-x: hidden;
        }

        body::before,
        body::after {
            content: "";
            position: fixed;
            inset: auto;
            border-radius: 999px;
            filter: blur(10px);
            pointer-events: none;
        }

        body::before {
            top: 72px;
            right: 8%;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(92, 168, 255, 0.34), transparent 68%);
        }

        body::after {
            bottom: 36px;
            left: 4%;
            width: 280px;
            height: 280px;
            background: radial-gradient(circle, rgba(31, 111, 255, 0.18), transparent 70%);
        }

        .layout {
            width: min(520px, calc(100% - 24px));
            min-height: 100vh;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 0;
        }

        .card {
            position: relative;
            overflow: hidden;
            width: 100%;
            padding: 30px;
            border: 1px solid var(--line);
            border-radius: 30px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
            background:
                linear-gradient(180deg, rgba(8, 20, 42, 0.94), var(--panel-strong)),
                linear-gradient(135deg, rgba(92, 168, 255, 0.08), transparent);
        }

        .eyebrow {
            margin: 0 0 8px;
            color: #cce2ff;
            font-size: 0.82rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .card-head {
            margin-bottom: 24px;
            text-align: center;
        }

        .card-head h2 {
            margin: 0 0 8px;
            font-size: 2rem;
            letter-spacing: -0.03em;
        }

        .card-head p {
            margin: 0;
            color: var(--muted);
            line-height: 1.7;
        }

        .tagline {
            margin: 0 0 6px;
            color: #cfe3ff;
            font-size: 0.98rem;
        }

        .flash,
        .error-box {
            margin-bottom: 18px;
            padding: 14px 16px;
            border-radius: 18px;
            line-height: 1.6;
        }

        .flash {
            background: rgba(125, 226, 199, 0.09);
            border: 1px solid rgba(125, 226, 199, 0.28);
            color: var(--success);
        }

        .error-box {
            background: rgba(255, 142, 142, 0.08);
            border: 1px solid rgba(255, 142, 142, 0.22);
            color: #ffd1d1;
        }

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

        .field {
            display: grid;
            gap: 8px;
        }

        label {
            color: #d7e7ff;
            font-size: 0.94rem;
        }

        .input-wrap {
            position: relative;
        }

        input {
            width: 100%;
            min-height: 58px;
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 0 16px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.04);
            outline: none;
            transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
        }

        input:focus {
            border-color: var(--line-strong);
            box-shadow: 0 0 0 4px rgba(92, 168, 255, 0.12);
            transform: translateY(-1px);
        }

        input::placeholder {
            color: #6f88ae;
        }

        .row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            color: var(--muted);
            font-size: 0.92rem;
        }

        .check {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .check input {
            width: 18px;
            min-height: auto;
            height: 18px;
            margin: 0;
            accent-color: var(--accent-strong);
        }

        .forgot {
            color: #b9d5ff;
            text-decoration: none;
        }

        .submit {
            min-height: 58px;
            border: 0;
            border-radius: 18px;
            font-size: 1rem;
            font-weight: 700;
            color: white;
            cursor: pointer;
            background:
                linear-gradient(135deg, #5ca8ff 0%, #2e7cff 45%, #1259dd 100%);
            box-shadow: 0 18px 35px rgba(18, 89, 221, 0.35);
        }

        .copyright {
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid var(--line);
            color: var(--muted);
            text-align: center;
            font-size: 0.9rem;
        }

        @media (max-width: 960px) {
            .layout {
                width: min(520px, calc(100% - 24px));
            }
        }

        @media (max-width: 640px) {
            .layout {
                width: min(100% - 20px, 100%);
                padding: 16px 0 24px;
            }

            .card {
                border-radius: 24px;
            }

            .card {
                padding: 22px;
            }

            .row {
                flex-direction: column;
                align-items: flex-start;
            }
        }
