        :root {
            --primary: #3d49ff;
            --primary-dark: #1f2d8f;
            --primary-soft: #eef0ff;
            --text: #16205d;
            --muted: #727bb2;
            --panel: rgba(255, 255, 255, 0.9);
            --border: rgba(99, 111, 214, 0.18);
            --shadow: 0 28px 60px rgba(66, 81, 196, 0.18);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Nunito", sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(239, 241, 255, 0.96) 42%, rgba(228, 232, 255, 0.92) 100%),
                linear-gradient(180deg, #f8f9ff 0%, #dfe3ff 100%);
        }

        .login-shell {
            min-height: 100vh;
            padding: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .login-shell::before,
        .login-shell::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            background: rgba(112, 126, 255, 0.12);
            filter: blur(8px);
        }

        .login-shell::before {
            width: 340px;
            height: 340px;
            left: -110px;
            top: 16%;
        }

        .login-shell::after {
            width: 480px;
            height: 480px;
            right: -150px;
            bottom: -180px;
        }

        .login-layout {
            width: min(1360px, 100%);
            display: grid;
            grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
            gap: 40px;
            align-items: center;
        }

        .hero {
            position: relative;
            min-height: 760px;
            padding: 24px 8px 40px 24px;
        }

        .cloud {
            position: absolute;
            background: rgba(211, 218, 255, 0.54);
            border-radius: 999px;
            filter: blur(1px);
        }

        .cloud::before,
        .cloud::after {
            content: "";
            position: absolute;
            background: inherit;
            border-radius: inherit;
        }

        .cloud.a {
            width: 124px;
            height: 32px;
            left: -40px;
            top: 290px;
        }

        .cloud.a::before {
            width: 48px;
            height: 48px;
            left: 18px;
            top: -22px;
        }

        .cloud.a::after {
            width: 56px;
            height: 56px;
            right: 10px;
            top: -24px;
        }

        .cloud.b {
            width: 152px;
            height: 38px;
            right: 58px;
            top: 216px;
        }

        .cloud.b::before {
            width: 58px;
            height: 58px;
            left: 26px;
            top: -26px;
        }

        .cloud.b::after {
            width: 66px;
            height: 66px;
            right: 16px;
            top: -28px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 34px;
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--primary);
        }

        .brand-word {
            font-size: clamp(2.2rem, 3vw, 3.5rem);
            line-height: 1;
        }

        .brand-trophy {
            width: 58px;
            height: 58px;
            flex: 0 0 auto;
            box-sizing: border-box;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(31, 41, 85, 0.14);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }

        .brand-ring {
            width: 44px;
            height: 44px;
            border: 4px solid #6255ff;
            border-left-color: transparent;
            border-radius: 50%;
            position: relative;
            transform: translateY(2px);
        }

        .institution-name {
            margin: 0 auto 24px;
            padding: 12px 18px;
            max-width: 420px;
            border: 1px solid #e2e7ff;
            border-radius: 16px;
            background: #f7f8ff;
            color: #303963;
            text-align: center;
        }

        .institution-name__label {
            display: block;
            margin-bottom: 3px;
            color: var(--muted);
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .institution-name strong {
            display: block;
            font-size: 1rem;
        }

        .brand-ring::after {
            content: "";
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #6255ff;
            right: -1px;
            top: 2px;
        }

        .hero-copy {
            max-width: 470px;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            margin: 0 0 18px;
            font-size: clamp(3rem, 4.5vw, 5rem);
            line-height: 0.98;
            font-weight: 800;
            letter-spacing: 0;
        }

        .hero p {
            margin: 0;
            font-size: clamp(1.3rem, 1.7vw, 1.9rem);
            line-height: 1.35;
            color: var(--text);
            max-width: 430px;
        }

        .sparkle {
            color: #f1b517;
            font-size: 1.2em;
            vertical-align: middle;
        }

        .scene {
            position: absolute;
            inset: auto 0 0 0;
            height: 470px;
            z-index: 1;
        }

        .land {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 240px;
            border-radius: 46px 46px 0 0;
            background: linear-gradient(180deg, #6676ff 0%, #5463ef 42%, #5f63db 100%);
            box-shadow: inset 0 14px 24px rgba(255, 255, 255, 0.18);
        }

        .mist {
            position: absolute;
            bottom: 158px;
            border-radius: 999px;
            background: rgba(204, 212, 255, 0.48);
        }

        .mist.one {
            width: 240px;
            height: 70px;
            right: 44px;
        }

        .mist.two {
            width: 170px;
            height: 54px;
            left: 210px;
            bottom: 188px;
        }

        .castle {
            position: absolute;
            left: 6px;
            bottom: 168px;
            width: 190px;
            height: 210px;
            opacity: 0.45;
        }

        .flag {
            position: absolute;
            width: 18px;
            height: 14px;
            background: linear-gradient(90deg, #8a8cff, #6b64ff);
            clip-path: polygon(0 0, 100% 22%, 0 50%);
        }

        .castle .tower,
        .castle .tower-small {
            position: absolute;
            bottom: 0;
            background: linear-gradient(180deg, rgba(160, 168, 255, 0.7), rgba(119, 131, 242, 0.8));
        }

        .castle .tower {
            left: 44px;
            width: 62px;
            height: 146px;
            border-radius: 12px 12px 18px 18px;
        }

        .castle .tower::before {
            content: "";
            position: absolute;
            left: -6px;
            right: -6px;
            top: -36px;
            height: 44px;
            background: linear-gradient(180deg, rgba(139, 148, 255, 0.8), rgba(112, 122, 236, 0.86));
            clip-path: polygon(50% 0, 100% 100%, 0 100%);
        }

        .castle .tower-small {
            left: 0;
            width: 42px;
            height: 88px;
            border-radius: 10px 10px 16px 16px;
        }

        .castle .tower-small::before {
            content: "";
            position: absolute;
            left: -4px;
            right: -4px;
            top: -24px;
            height: 30px;
            background: linear-gradient(180deg, rgba(145, 153, 255, 0.78), rgba(112, 122, 236, 0.82));
            clip-path: polygon(50% 0, 100% 100%, 0 100%);
        }

        .castle .flag.left {
            left: 20px;
            top: 18px;
        }

        .castle .flag.right {
            left: 68px;
            top: -26px;
        }

        .student {
            position: absolute;
            left: 170px;
            bottom: 82px;
            width: 350px;
            height: 300px;
        }

        .student .hair {
            position: absolute;
            left: 84px;
            top: 34px;
            width: 118px;
            height: 96px;
            background: linear-gradient(180deg, #4b2d23, #281712);
            border-radius: 54% 54% 46% 48%;
            box-shadow: 0 10px 24px rgba(51, 24, 17, 0.25);
        }

        .student .head {
            position: absolute;
            left: 92px;
            top: 58px;
            width: 106px;
            height: 116px;
            background: linear-gradient(180deg, #f4c6a7, #e8a87f);
            border-radius: 44% 44% 48% 48%;
            z-index: 2;
        }

        .student .ear {
            position: absolute;
            width: 18px;
            height: 24px;
            background: #e9ae8a;
            border-radius: 50%;
            top: 105px;
            z-index: 1;
        }

        .student .ear.left {
            left: 84px;
        }

        .student .ear.right {
            left: 188px;
        }

        .student .eye {
            position: absolute;
            top: 102px;
            width: 16px;
            height: 20px;
            background: #1a1b20;
            border-radius: 50%;
            z-index: 3;
        }

        .student .eye.left {
            left: 122px;
        }

        .student .eye.right {
            left: 164px;
        }

        .student .eye::after {
            content: "";
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #fff;
            top: 3px;
            left: 3px;
        }

        .student .mouth {
            position: absolute;
            left: 132px;
            top: 138px;
            width: 38px;
            height: 18px;
            border-bottom: 4px solid #b15a43;
            border-radius: 0 0 26px 26px;
            z-index: 3;
        }

        .student .hoodie {
            position: absolute;
            left: 44px;
            top: 132px;
            width: 210px;
            height: 150px;
            background: linear-gradient(180deg, #7044ff 0%, #4f2cc8 100%);
            border-radius: 42% 42% 24% 24%;
            z-index: 1;
            box-shadow: 0 20px 28px rgba(70, 44, 181, 0.25);
        }

        .student .hood {
            position: absolute;
            left: 88px;
            top: 114px;
            width: 116px;
            height: 108px;
            border: 18px solid #5a32de;
            border-bottom-width: 12px;
            border-radius: 50%;
            z-index: 1;
        }

        .student .arm {
            position: absolute;
            top: 202px;
            width: 48px;
            height: 88px;
            background: linear-gradient(180deg, #7044ff, #4f2cc8);
            border-radius: 24px;
            transform: rotate(12deg);
            z-index: 4;
        }

        .student .arm.left {
            left: 74px;
        }

        .student .arm.right {
            left: 204px;
            transform: rotate(-14deg);
        }

        .student .hand {
            position: absolute;
            top: 260px;
            width: 36px;
            height: 24px;
            background: #efbc98;
            border-radius: 18px;
            z-index: 5;
        }

        .student .hand.left {
            left: 92px;
        }

        .student .hand.right {
            left: 216px;
        }

        .student .book {
            position: absolute;
            left: 106px;
            top: 196px;
            width: 126px;
            height: 92px;
            background: linear-gradient(180deg, #214498, #16357b);
            border-radius: 10px;
            transform: perspective(200px) rotateX(18deg) rotate(-6deg);
            z-index: 4;
            box-shadow: 0 14px 22px rgba(15, 36, 97, 0.28);
        }

        .student .book::before,
        .student .book::after {
            content: "";
            position: absolute;
            top: 0;
            width: 58px;
            height: 92px;
            background: linear-gradient(180deg, #2f5fc9, #1d418a);
            border-radius: 10px;
        }

        .student .book::before {
            left: -4px;
            transform: skewY(6deg);
        }

        .student .book::after {
            right: -4px;
            transform: skewY(-6deg);
        }

        .book-line {
            position: absolute;
            left: 58px;
            top: 8px;
            bottom: 8px;
            width: 4px;
            background: rgba(255, 255, 255, 0.58);
            z-index: 5;
            border-radius: 999px;
        }

        .book-title {
            position: absolute;
            font-size: 1rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.85);
            z-index: 5;
            top: 28px;
        }

        .book-title.left {
            left: 16px;
            transform: rotate(9deg);
        }

        .book-title.right {
            right: 12px;
            transform: rotate(-8deg);
        }

        .desk {
            position: absolute;
            left: 118px;
            bottom: 50px;
            width: 470px;
            height: 30px;
            background: linear-gradient(180deg, #d89a77, #be805f);
            border-radius: 20px;
            box-shadow: 0 10px 24px rgba(105, 56, 33, 0.16);
        }

        .stack-book {
            position: absolute;
            left: 90px;
            bottom: 76px;
            width: 90px;
            height: 16px;
            border-radius: 5px;
        }

        .stack-book.one {
            background: linear-gradient(180deg, #d0a03a, #bb8725);
        }

        .stack-book.two {
            bottom: 92px;
            left: 102px;
            width: 82px;
            background: linear-gradient(180deg, #4a6fdc, #3558bb);
        }

        .plant-pot {
            position: absolute;
            left: 10px;
            bottom: 72px;
            width: 68px;
            height: 58px;
            border-radius: 0 0 18px 18px;
            background: linear-gradient(180deg, #8260ff, #5d42dd);
        }

        .plant-pot::before,
        .plant-pot::after {
            content: "";
            position: absolute;
            bottom: 48px;
            width: 24px;
            height: 40px;
            background: linear-gradient(180deg, #74d85b, #33ad49);
            border-radius: 24px 24px 0 24px;
        }

        .plant-pot::before {
            left: 16px;
            transform: rotate(-16deg);
        }

        .plant-pot::after {
            left: 32px;
            transform: rotate(22deg);
        }

        .trophy {
            position: absolute;
            right: 112px;
            bottom: 162px;
            width: 84px;
            height: 96px;
        }

        .trophy-cup {
            position: absolute;
            top: 0;
            left: 10px;
            width: 64px;
            height: 48px;
            background: linear-gradient(180deg, #ffcf54, #d69218);
            border-radius: 12px 12px 22px 22px;
            box-shadow: 0 10px 18px rgba(216, 151, 43, 0.24);
        }

        .trophy-cup::before,
        .trophy-cup::after {
            content: "";
            position: absolute;
            top: 8px;
            width: 18px;
            height: 24px;
            border: 6px solid #e4aa32;
            border-radius: 50%;
        }

        .trophy-cup::before {
            left: -16px;
        }

        .trophy-cup::after {
            right: -16px;
        }

        .trophy-stem {
            position: absolute;
            left: 34px;
            top: 44px;
            width: 18px;
            height: 24px;
            background: linear-gradient(180deg, #d59b26, #9c6510);
        }

        .trophy-base {
            position: absolute;
            left: 20px;
            bottom: 0;
            width: 44px;
            height: 22px;
            border-radius: 6px;
            background: linear-gradient(180deg, #7a4a10, #4f2d05);
        }

        .badge-star {
            position: absolute;
            right: 186px;
            bottom: 266px;
            width: 74px;
            height: 74px;
            background: linear-gradient(180deg, #7044ff, #4b31d8);
            border-radius: 18px;
            transform: rotate(18deg);
            box-shadow: 0 18px 20px rgba(74, 51, 216, 0.2);
        }

        .badge-star::before {
            content: "★";
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            color: #ffb921;
            font-size: 2rem;
            transform: rotate(-18deg);
        }

        .hero-note {
            position: absolute;
            left: 24px;
            right: 82px;
            bottom: 26px;
            display: flex;
            gap: 18px;
            align-items: center;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(122, 136, 243, 0.18);
            border-radius: 28px;
            padding: 26px 28px;
            backdrop-filter: blur(8px);
            box-shadow: var(--shadow);
            z-index: 2;
        }

        .note-icon {
            width: 66px;
            height: 66px;
            border-radius: 50%;
            flex: none;
            display: grid;
            place-items: center;
            color: #fff;
            background: linear-gradient(180deg, #6d62ff, #4b3ddd);
            box-shadow: 0 12px 22px rgba(76, 64, 208, 0.28);
        }

        .note-title {
            margin: 0 0 4px;
            font-size: 1.1rem;
            font-weight: 800;
        }

        .note-text {
            margin: 0;
            font-size: 0.98rem;
            line-height: 1.5;
            color: #39437c;
        }

        .login-card {
            position: relative;
            padding: 32px;
        }

        .card-surface {
            min-height: 760px;
            padding: 48px 56px 36px;
            border-radius: 36px;
            background: var(--panel);
            border: 1px solid rgba(255, 255, 255, 0.72);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
        }

        .controller-badge {
            width: 136px;
            height: 136px;
            margin: 0 auto 28px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: radial-gradient(circle at 30% 30%, #6f67ff, #4638dc 74%);
            box-shadow: 0 22px 34px rgba(81, 71, 220, 0.24);
            position: relative;
        }

        .controller-badge::after,
        .controller-badge::before {
            content: "";
            position: absolute;
            border-radius: 999px;
            background: #6559ff;
        }

        .controller-badge::before {
            width: 3px;
            height: 18px;
            top: -8px;
            right: 36px;
            transform: rotate(0deg);
        }

        .controller-badge::after {
            width: 3px;
            height: 18px;
            top: 2px;
            right: 20px;
            transform: rotate(48deg);
        }

        .field-group {
            margin-bottom: 26px;
        }

        .field-label {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 1rem;
            font-weight: 800;
            color: var(--text);
        }

        .field-label svg {
            color: #5f4eff;
            flex: none;
        }

        .field-shell {
            position: relative;
        }

        .field-input {
            width: 100%;
            height: 68px;
            border: 2px solid rgba(147, 155, 219, 0.34);
            border-radius: 18px;
            padding: 0 22px;
            font: inherit;
            font-size: 1rem;
            color: var(--text);
            background: rgba(255, 255, 255, 0.92);
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .field-input::placeholder {
            color: #9098c7;
        }

        .field-input:focus {
            border-color: rgba(84, 96, 255, 0.7);
            box-shadow: 0 0 0 4px rgba(84, 96, 255, 0.12);
        }

        .field-input.with-action {
            padding-right: 64px;
        }

        .field-action {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            padding: 4px;
            color: #8c93bf;
            cursor: pointer;
        }

        .field-action:hover {
            color: #5460ff;
        }

        .message {
            display: flex;
            align-items: center;
            gap: 10px;
            border-radius: 16px;
            padding: 14px 16px;
            margin-bottom: 18px;
            font-size: 0.95rem;
        }

        .message.error {
            background: #fff1f1;
            color: #b53a3a;
            border: 1px solid #ffd0d0;
        }

        .message.success {
            background: #f0fff5;
            color: #25754b;
            border: 1px solid #c9f2d8;
        }

        .submit-btn {
            width: 100%;
            height: 78px;
            border: 0;
            border-radius: 20px;
            margin-top: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            font: inherit;
            font-size: 1.2rem;
            font-weight: 800;
            color: #fff;
            background: linear-gradient(90deg, #473cff 0%, #1c53ff 100%);
            box-shadow: 0 18px 30px rgba(58, 80, 240, 0.28);
            cursor: pointer;
        }

        .submit-btn svg {
            flex: none;
        }

        .card-footer {
            margin-top: auto;
            padding-top: 28px;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 14px;
            color: #b1b5d4;
            margin-bottom: 24px;
        }

        .divider::before,
        .divider::after {
            content: "";
            height: 1px;
            flex: 1;
            background: rgba(140, 150, 213, 0.45);
        }

        .divider span {
            font-size: 1.45rem;
            line-height: 1;
            transform: translateY(-2px);
        }

        .recovery {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #2943ff;
            text-decoration: none;
            font-size: 0.98rem;
            font-weight: 700;
        }

        .security {
            margin-top: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: var(--muted);
            font-size: 0.94rem;
            text-align: center;
        }

        @media (max-width: 1180px) {
            .login-layout {
                grid-template-columns: 1fr;
                max-width: 760px;
            }

            .hero {
                min-height: 700px;
                padding-right: 24px;
            }

            .card-surface {
                min-height: auto;
            }
        }

        @media (max-width: 760px) {
            .login-shell {
                padding: 18px;
            }

            .hero {
                min-height: auto;
                padding: 0 0 24px;
            }

            .scene {
                position: relative;
                height: 420px;
                margin-top: 20px;
            }

            .hero-note {
                position: relative;
                left: 0;
                right: 0;
                bottom: 0;
                margin-top: 18px;
            }

            .card-surface {
                padding: 32px 22px 28px;
                border-radius: 28px;
            }

            .login-card {
                padding: 0;
            }

            .controller-badge {
                width: 110px;
                height: 110px;
            }

            .field-input,
            .submit-btn {
                height: 62px;
            }

            .security {
                font-size: 0.88rem;
            }
        }
