@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/Inter-400.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/Inter-500.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/Inter-600.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Inter-700.woff2') format('woff2')}

        :root {
            --brand-grad-from: #1a2455;
            --brand-grad-via: #2b3a8c;
            --brand-grad-to: #4054b2;
            --accent: #4f8cff;
            --accent-dark: #2b6cf6;
            --ink: #0f172a;
            --ink-muted: #64748b;
            --line: #e2e8f0;
            --surface: #ffffff;
            --bg: #f1f5fb;
            --danger: #dc2626;
            --success: #16a34a;
        }

        * { box-sizing: border-box; }
        html, body { height: 100%; }
        body {
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
            color: var(--ink);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .auth-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        /* Brand pane (left) */
        .auth-brand {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(1200px 600px at -10% -10%, rgba(255,255,255,.10), transparent 60%),
                radial-gradient(800px 400px at 110% 110%, rgba(255,255,255,.08), transparent 60%),
                linear-gradient(135deg, var(--brand-grad-from) 0%, var(--brand-grad-via) 50%, var(--brand-grad-to) 100%);
            background-size: 200% 200%, 200% 200%, 200% 200%;
            animation: bgShift 18s ease-in-out infinite;
            color: #fff;
            padding: 48px 56px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            text-align: left;
        }
        @keyframes bgShift {
            0%, 100% { background-position: 0% 0%, 100% 100%, 0% 0%; }
            50%      { background-position: 30% 20%, 70% 80%, 100% 100%; }
        }
        .auth-brand::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0, rgba(255,255,255,0) 2px),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0, rgba(255,255,255,0) 2px),
                radial-gradient(circle at 60% 20%, rgba(255,255,255,.06) 0, rgba(255,255,255,0) 2px);
            background-size: 60px 60px, 90px 90px, 120px 120px;
            opacity: .55;
            pointer-events: none;
        }

        /* Floating decorative orbs */
        .auth-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
            opacity: .55;
            pointer-events: none;
            z-index: 0;
        }
        .auth-orb--1 {
            width: 320px; height: 320px;
            background: radial-gradient(circle, #6c8cff 0%, transparent 70%);
            top: -80px; left: -60px;
            animation: floatA 14s ease-in-out infinite;
        }
        .auth-orb--2 {
            width: 280px; height: 280px;
            background: radial-gradient(circle, #a674ff 0%, transparent 70%);
            bottom: -60px; right: -40px;
            animation: floatB 16s ease-in-out infinite;
        }
        .auth-orb--3 {
            width: 220px; height: 220px;
            background: radial-gradient(circle, #38c4ff 0%, transparent 70%);
            top: 45%; right: 20%;
            opacity: .35;
            animation: floatC 20s ease-in-out infinite;
        }
        @keyframes floatA {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50%      { transform: translate(40px, 30px) scale(1.08); }
        }
        @keyframes floatB {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50%      { transform: translate(-30px, -40px) scale(1.1); }
        }
        @keyframes floatC {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33%      { transform: translate(-20px, 25px) scale(.9); }
            66%      { transform: translate(25px, -15px) scale(1.05); }
        }

        .auth-brand__inner {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            flex: 1;
            width: 100%;
            max-width: 560px;
            margin: auto 0;
        }

        .auth-hero {
            max-width: 460px;
            text-align: left;
            animation: fadeUp .8s ease .15s both;
        }
        .auth-hero__kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.18);
            font-size: 12px;
            font-weight: 500;
            letter-spacing: .4px;
            text-transform: uppercase;
        }
        .auth-hero h1 {
            font-size: 38px;
            line-height: 1.15;
            font-weight: 700;
            margin: 18px 0 12px;
        }
        .auth-hero p {
            font-size: 16px;
            line-height: 1.6;
            color: rgba(255,255,255,.78);
            margin: 0;
        }

        .auth-feat {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-top: 36px;
            width: 100%;
            max-width: 560px;
            text-align: left;
        }
        .auth-feat__item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 14px;
            border-radius: 12px;
            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.12);
            backdrop-filter: blur(6px);
            transition: transform .25s ease, background .25s ease, border-color .25s ease;
            animation: fadeUp .7s ease both;
        }
        .auth-feat__item:nth-child(1) { animation-delay: .30s; }
        .auth-feat__item:nth-child(2) { animation-delay: .40s; }
        .auth-feat__item:nth-child(3) { animation-delay: .50s; }
        .auth-feat__item:nth-child(4) { animation-delay: .60s; }
        .auth-feat__item:hover {
            transform: translateY(-3px);
            background: rgba(255,255,255,.13);
            border-color: rgba(255,255,255,.22);
        }
        .auth-feat__icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: grid;
            place-items: center;
            background: rgba(255,255,255,.18);
            font-size: 18px;
            flex-shrink: 0;
            transition: transform .25s ease;
        }
        .auth-feat__item:hover .auth-feat__icon { transform: rotate(-6deg) scale(1.06); }
        .auth-feat__title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 2px;
        }
        .auth-feat__desc {
            font-size: 12px;
            color: rgba(255,255,255,.72);
            line-height: 1.45;
        }

        .auth-foot {
            position: relative;
            z-index: 1;
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid rgba(255,255,255,.12);
            font-size: 13px;
            color: rgba(255,255,255,.7);
            animation: fadeUp .7s ease .7s both;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeDown {
            from { opacity: 0; transform: translateY(-14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Form pane (right) */
        .auth-form-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
        }
        .auth-corner-logo {
            position: absolute;
            top: 28px;
            right: 36px;
            z-index: 2;
            animation: fadeDown .6s ease both;
        }
        .auth-corner-logo img {
            height: 38px;
            width: auto;
            display: block;
            transition: transform .25s ease, opacity .25s ease;
            opacity: .9;
        }
        .auth-corner-logo:hover img {
            transform: translateY(-1px);
            opacity: 1;
        }
        .auth-card {
            width: 100%;
            max-width: 420px;
            animation: fadeUp .7s ease .1s both;
        }
        .auth-card__head {
            text-align: left;
            margin-bottom: 28px;
        }
        .auth-card__head h2 {
            font-size: 26px;
            font-weight: 700;
            margin: 0 0 6px;
            color: var(--ink);
        }
        .auth-card__head p {
            margin: 0;
            color: var(--ink-muted);
            font-size: 14px;
        }

        .auth-alert {
            display: flex;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 10px;
            font-size: 13px;
            margin-bottom: 18px;
            border: 1px solid transparent;
        }
        .auth-alert--success {
            background: #f0fdf4;
            color: #14532d;
            border-color: #bbf7d0;
        }
        .auth-alert--error {
            background: #fef2f2;
            color: #7f1d1d;
            border-color: #fecaca;
        }
        .auth-alert--notice {
            background: #fffbeb;
            color: #78350f;
            border-color: #fde68a;
        }
        .auth-alert i { font-size: 16px; flex-shrink: 0; line-height: 1.25; }

        .form-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--ink);
            margin-bottom: 6px;
        }

        .auth-input {
            position: relative;
        }
        .auth-input .form-control {
            height: 46px;
            padding-left: 42px;
            padding-right: 14px;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: #fff;
            font-size: 14px;
            color: var(--ink);
            transition: border-color .15s ease, box-shadow .15s ease;
        }
        .auth-input .form-control:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(79, 140, 255, .18);
            outline: none;
        }
        .auth-input .form-control::placeholder { color: #94a3b8; }
        .auth-input__icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ink-muted);
            font-size: 16px;
            pointer-events: none;
        }
        .auth-input--pwd .form-control { padding-right: 46px; }
        .auth-input__toggle {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: 0;
            color: var(--ink-muted);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: background .15s ease, color .15s ease;
        }
        .auth-input__toggle:hover { background: #f1f5f9; color: var(--ink); }

        .auth-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 14px 0 22px;
            font-size: 13px;
        }
        .auth-check {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--ink-muted);
            user-select: none;
        }
        .auth-check input {
            width: 16px;
            height: 16px;
            accent-color: var(--accent);
            cursor: pointer;
        }
        .auth-link {
            color: var(--accent-dark);
            font-weight: 500;
            text-decoration: none;
        }
        .auth-link:hover { text-decoration: underline; }

        .btn-auth {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 48px;
            border: 0;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            background-size: 200% 100%;
            color: #fff;
            font-weight: 600;
            font-size: 15px;
            letter-spacing: .2px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 10px 24px -10px rgba(43, 108, 246, .55);
            transition: transform .12s ease, box-shadow .2s ease, background-position .4s ease, opacity .15s ease;
        }
        .btn-auth:hover {
            transform: translateY(-1px);
            background-position: 100% 0;
            box-shadow: 0 14px 28px -10px rgba(43, 108, 246, .65);
        }
        .btn-auth:hover i { transform: translateX(3px); }
        .btn-auth i { transition: transform .2s ease; }
        .btn-auth:active { transform: translateY(0); }
        .btn-auth[disabled] { opacity: .7; cursor: progress; transform: none; }
        .btn-auth::after {
            content: "";
            position: absolute;
            top: 0; left: -75%;
            width: 50%; height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
            transform: skewX(-20deg);
            transition: left .6s ease;
        }
        .btn-auth:hover::after { left: 125%; }
        .btn-auth .spinner {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,.4);
            border-top-color: #fff;
            animation: spin .7s linear infinite;
            display: none;
        }
        .btn-auth.is-loading .spinner { display: inline-block; }
        .btn-auth.is-loading .label { opacity: .85; }
        @keyframes spin { to { transform: rotate(360deg); } }

        .auth-meta {
            text-align: center;
            margin-top: 22px;
            font-size: 12px;
            color: var(--ink-muted);
        }
        .auth-meta strong { color: var(--ink); font-weight: 600; }

        .field-error {
            display: block;
            color: var(--danger);
            font-size: 12px;
            margin-top: 6px;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .auth-shell { grid-template-columns: 1fr; }
            .auth-brand { display: none; }
            .auth-form-wrap {
                padding: 32px 20px;
                min-height: 100vh;
                background:
                    radial-gradient(900px 500px at -10% -10%, rgba(79, 140, 255, .12), transparent 60%),
                    radial-gradient(700px 400px at 110% 110%, rgba(43, 108, 246, .10), transparent 60%),
                    var(--bg);
            }
            .auth-card { max-width: 440px; }
        }
        @media (min-width: 1280px) {
            .auth-brand { padding: 56px 80px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .auth-brand,
            .auth-orb,
            .auth-feat__item,
            .auth-card,
            .auth-hero,
            .auth-corner-logo,
            .auth-foot { animation: none !important; }
            .btn-auth::after { display: none; }
        }
    