        :root {
            --auth-primary: #4f46e5;
            --auth-primary-deep: #312e81;
            --auth-ink: #0f172a;
            --auth-muted: #64748b;
            --auth-line: #dbe3ef;
            --auth-surface: #ffffff;
            --auth-bg: #f8fafc;
            --auth-panel-shadow: 0 28px 60px rgba(49, 46, 129, 0.18);
            --auth-card-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
            --auth-radius-xl: 30px;
            --auth-radius-lg: 22px;
            --auth-radius-md: 16px;
        }

        * { box-sizing: border-box; }

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

        body {
            margin: 0;
            font-family: 'Inter', sans-serif;
            color: var(--auth-ink);
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            font-size: 20px;
            line-height: 1;
        }

        .auth-screen {
            min-height: 100vh;
            display: flex;
            background: #fff;
        }

        .auth-main {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
            min-height: 100vh;
        }

        .auth-form-panel {
            background: var(--auth-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
        }

        .auth-form-wrap {
            width: min(100%, 560px);
        }

        .auth-mobile-brand {
            display: none;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
            font-size: 1.2rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: var(--auth-primary);
        }

        .auth-brand-badge {
            width: auto;
            max-width: 220px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .auth-brand-badge.is-plain {
            background: var(--auth-primary);
            color: #fff;
            width: 44px;
            height: 44px;
            max-width: none;
        }

        .auth-brand-badge img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        .auth-brand-badge span {
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: -0.04em;
        }

        .auth-heading {
            margin-bottom: 40px;
        }

        .auth-heading h1 {
            margin: 0;
            font-size: clamp(2rem, 5vw, 3.5rem);
            line-height: 1.05;
            letter-spacing: -0.06em;
            font-weight: 800;
        }

        .auth-heading p {
            margin: 16px 0 0;
            color: var(--auth-muted);
            font-size: 1rem;
            line-height: 1.55;
        }

        .auth-form {
            display: grid;
            gap: 22px;
        }

        .auth-field-group {
            display: grid;
            gap: 10px;
        }

        .auth-field-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .auth-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
        }

        .auth-link-inline {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--auth-primary);
        }

        .auth-input-wrap {
            position: relative;
        }

        .auth-input-icon {
            position: absolute;
            inset: 0 auto 0 0;
            width: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            pointer-events: none;
        }

        .auth-input,
        .auth-textarea {
            width: 100%;
            min-height: 62px;
            padding: 0 18px 0 48px;
            border: 1px solid var(--auth-line);
            border-radius: 18px;
            background: var(--auth-surface);
            color: var(--auth-ink);
            font: inherit;
            transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
        }

        .auth-input::placeholder,
        .auth-textarea::placeholder {
            color: #94a3b8;
        }

        .auth-input:focus,
        .auth-textarea:focus {
            outline: none;
            border-color: rgba(79, 70, 229, 0.5);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
        }

        .auth-input.is-invalid,
        .auth-textarea.is-invalid {
            border-color: #ef4444;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
        }

        .auth-check-row {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #334155;
            font-size: 0.95rem;
        }

        .auth-check-row input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin: 0;
            border-radius: 6px;
            accent-color: var(--auth-primary);
            cursor: pointer;
        }

        .auth-check-stack {
            display: grid;
            gap: 14px;
        }

        .auth-submit {
            min-height: 68px;
            border: 0;
            border-radius: 18px;
            background: #0f172a;
            color: #fff;
            font: inherit;
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            cursor: pointer;
            transition: transform .14s ease, background .18s ease, box-shadow .18s ease;
            box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
        }

        .auth-submit:hover {
            background: #111c34;
        }

        .auth-submit:active {
            transform: scale(0.992);
        }

        .auth-feedback,
        .invalid-feedback {
            display: block;
            color: #dc2626;
            font-size: 0.86rem;
            line-height: 1.45;
        }

        .auth-divider {
            margin-top: 38px;
            padding-top: 28px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
        }

        .auth-divider p,
        .auth-legal-links a {
            color: var(--auth-muted);
        }

        .auth-divider strong,
        .auth-divider a,
        .auth-check-row a {
            color: var(--auth-primary);
            font-weight: 700;
        }

        .auth-legal-links {
            margin-top: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 28px;
            font-size: 0.86rem;
        }

        .auth-side-panel {
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 42px;
            background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%);
            color: #fff;
        }

        .auth-side-panel::before,
        .auth-side-panel::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            filter: blur(36px);
        }

        .auth-side-panel::before {
            top: -80px;
            right: -60px;
            width: 260px;
            height: 260px;
            background: rgba(255, 255, 255, 0.12);
        }

        .auth-side-panel::after {
            left: -110px;
            bottom: -120px;
            width: 320px;
            height: 320px;
            background: rgba(129, 140, 248, 0.28);
        }

        .auth-side-grid {
            position: absolute;
            inset: 0;
            opacity: 0.12;
            background-image: radial-gradient(#fff 1px, transparent 1px);
            background-size: 26px 26px;
        }

        .auth-side-content {
            position: relative;
            z-index: 1;
            max-width: 440px;
            width: 100%;
            text-align: center;
            overflow: hidden;
        }

        .auth-side-wrap {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 440px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 38px;
        }

        .auth-side-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .auth-side-slider {
            width: 100%;
            overflow: hidden;
        }

        .auth-side-track {
            display: flex;
            width: 100%;
            transition: transform 420ms ease;
            will-change: transform;
        }

        .auth-side-slide {
            width: 100%;
            flex: 0 0 100%;
            text-align: center;
        }

        .auth-side-content h2 {
            margin: 0;
            font-size: clamp(2.1rem, 3.6vw, 3rem);
            line-height: 1.14;
            letter-spacing: -0.05em;
            font-weight: 800;
        }

        .auth-side-content p {
            margin: 24px 0 0;
            color: rgba(224, 231, 255, 0.88);
            font-size: 1.1rem;
            line-height: 1.7;
        }

        .auth-side-pager {
            margin-top: 58px;
            display: inline-flex;
            align-items: center;
            gap: 16px;
        }

        .auth-side-pager button {
            padding: 0;
            border: 0;
            cursor: pointer;
            appearance: none;
            height: 4px;
            border-radius: 999px;
            background: rgba(255,255,255,0.22);
            transition: background .22s ease, width .22s ease, opacity .22s ease;
        }

        .auth-side-pager button:nth-child(1),
        .auth-side-pager button:nth-child(3) {
            width: 72px;
        }

        .auth-side-pager button:nth-child(2) {
            width: 40px;
        }

        .auth-side-pager button.is-active {
            background: #fff;
        }

        .auth-form .row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .auth-form .row > * {
            min-width: 0;
        }

        @media (max-width: 1180px) {
            .auth-main {
                grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
            }
        }

        @media (max-width: 980px) {
            .auth-main {
                grid-template-columns: 1fr;
            }

            .auth-side-panel {
                display: none;
            }

            .auth-mobile-brand {
                display: inline-flex;
            }

            .auth-heading p {
                max-width: none;
            }
        }

        @media (max-width: 640px) {
            .auth-form-panel {
                padding: 28px 18px 34px;
            }

            .auth-heading {
                margin-bottom: 32px;
            }

            .auth-form .row {
                grid-template-columns: 1fr;
                gap: 22px;
            }

            .auth-input,
            .auth-textarea,
            .auth-submit {
                min-height: 58px;
            }

            .auth-legal-links {
                gap: 18px;
            }
        }
