

        :root {
            --bs-font-sans-serif: "Inter", sans-serif;
            --brand: #2C2B74;
            --brand-panel: #0f0e32;
            --brand-hover: #3d3c8a;
            --brand-soft: rgba(44, 43, 116, 0.08);
            --brand-border: rgba(44, 43, 116, 0.25);
            --bg: #f0f2f5;
            --surface: #ffffff;
            --surface-2: #f7f8fa;
            --surface-3: #eef0f4;
            --border: #dde1e9;
            --border-light: #e8ebf0;
            --gray: #9ba3b2;
            --gray-mid: #6b7280;
            --text: #1f2937;
            --text-light: #374151;
            --white: #ffffff;
            --header-dark: #252b3b;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
        }

        /* ── Layout ── */
        .auth-split {
            flex: 1;
            display: flex;
            flex-direction: row;
            min-height: 0;
            width: 100%;
            align-items: stretch;
        }

        .auth-split__form {
            flex: 0 0 40%;
            min-width: min(100%, 340px);
            max-width: 580px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 32px;
            overflow-y: auto;
            background: var(--surface);
            border-right: 1px solid var(--border);
        }

        .auth-split__visual {
            flex: 1;
            min-width: 0;
            min-height: 280px;
            background-color: #c8cdd8;
            background-image: url("../images/auth_background.jpg");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
        }

        .auth-split__overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                160deg,
                color-mix(in srgb, var(--brand-panel) 72%, transparent) 0%,
                color-mix(in srgb, var(--brand-panel) 45%, transparent) 50%,
                color-mix(in srgb, var(--brand-panel) 25%, transparent) 100%
            );
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 48px 44px;
        }

        .auth-split__overlay-headline {
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.3;
            letter-spacing: -0.4px;
            margin-bottom: 10px;
        }

        .auth-split__overlay-sub {
            font-size: 13.5px;
            color: rgba(255, 255, 255, 0.65);
            line-height: 1.6;
            max-width: 340px;
        }

        .auth-split--wide .auth-split__visual { display: none; }
        .auth-split--wide .auth-split__form {
            flex: 1;
            max-width: none;
            border-right: none;
        }

        /* ── Nav ── */
        .auth-nav {
            padding: 0 32px;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
            background: var(--surface);
            flex-shrink: 0;
        }

        .auth-nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .auth-nav-brand img { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
        .auth-nav-brand-name { font-size: 17px; font-weight: 600; color: var(--brand); }
        .auth-nav--large-logo { height: 80px; }
        .auth-nav--large-logo .auth-nav-brand img { height: 60px; max-width: 320px; }
        .auth-nav--large-logo .auth-nav-brand-name { font-size: 20px; }
        .auth-nav--dark { background: var(--header-dark); border-bottom-color: var(--header-dark); }
        .auth-nav--dark .auth-nav-brand-name { color: #ffffff; }
        .auth-nav--dark .auth-nav-tab { color: rgba(255, 255, 255, 0.75); }
        .auth-nav--dark .auth-nav-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
        .auth-nav--dark .auth-nav-tab.active { color: #ffffff; background: rgba(255, 255, 255, 0.16); }
        .auth-nav--dark .language-switcher { border-left-color: rgba(255, 255, 255, 0.2); }
        .auth-nav--dark .language-switcher__link { color: rgba(255, 255, 255, 0.75); }
        .auth-nav--dark .language-switcher__link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
        .auth-nav--dark .language-switcher__link.is-current { color: #ffffff; }
        .auth-nav--dark .language-switcher[open] .language-switcher__link { color: #ffffff; background: rgba(255, 255, 255, 0.16); }

        .auth-nav-tabs {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .auth-nav-tab {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-mid);
            text-decoration: none;
            padding: 6px 14px;
            border-radius: 6px;
            transition: background 0.15s, color 0.15s;
        }

        .auth-nav-tab:hover {
            color: var(--text);
            background: var(--surface-3);
        }

        .auth-nav-tab.active {
            color: var(--brand);
            background: var(--brand-soft);
            font-weight: 600;
            pointer-events: none;
        }

        .language-switcher {
            position: relative;
            margin-left: 8px;
            padding-left: 8px;
            border-left: 1px solid var(--border);
        }

        .language-switcher__link {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-mid);
            padding: 6px 8px;
            border-radius: 6px;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .language-switcher__link::-webkit-details-marker { display: none; }
        .language-switcher__link::after { content: '\25BE'; font-size: 10px; }

        .language-switcher__link:hover {
            color: var(--text);
            background: var(--surface-3);
        }

        .language-switcher[open] .language-switcher__link { color: var(--text); background: var(--surface-3); }

        .language-switcher__menu {
            position: absolute;
            right: 0;
            top: calc(100% + 6px);
            z-index: 20;
            min-width: 160px;
            max-height: 320px;
            overflow-y: auto;
            padding: 4px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(15, 14, 50, 0.12);
        }

        .language-switcher__item {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            padding: 7px 10px;
            font-size: 13px;
            color: var(--text);
            text-decoration: none;
            border-radius: 4px;
            white-space: nowrap;
        }

        .language-switcher__item:hover { background: var(--surface-3); }
        .language-switcher__item.is-current { color: var(--brand); font-weight: 700; }
        .language-switcher__item.is-current::after { content: '\2713'; }

        /* ── Container ── */
        .auth-container {
            width: 100%;
            max-width: 400px;
        }

        /* ── Header ── */
        .auth-header {
            margin-bottom: 28px;
        }

        .auth-header h1 {
            font-size: 21px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 5px;
            letter-spacing: -0.4px;
            line-height: 1.25;
        }

        .auth-header p {
            font-size: 13.5px;
            color: var(--gray-mid);
            line-height: 1.5;
        }

        /* ── Card ── */
        .auth-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
        }

        .auth-card-body { padding: 28px; }

        /* ── Site footer ── */
        .site-footer {
            border-top: 1px solid var(--border);
            padding: 14px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11.5px;
            color: var(--gray-mid);
            background: var(--surface);
            flex-shrink: 0;
        }

        .site-footer a { color: var(--gray-mid); text-decoration: none; }
        .site-footer a:hover { color: var(--text); }
        .site-footer .brand-footer-attribution { text-decoration: underline; text-underline-offset: 2px; }
        .footer-links { display: flex; gap: 16px; }

        /* ── Form elements ── */
        .form-label {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 6px;
        }

        .form-control, .form-select {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 7px;
            padding: 10px 13px;
            font-size: 14px;
            color: var(--text);
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .form-control::placeholder { color: var(--gray); }

        .form-control:focus, .form-select:focus {
            background: var(--surface);
            border-color: var(--brand-border);
            box-shadow: 0 0 0 3px var(--brand-soft);
            color: var(--text);
            outline: none;
        }

        .form-text { color: var(--gray); font-size: 12px; }

        .btn-primary {
            background: var(--brand-button, var(--brand));
            border: none;
            border-radius: 7px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            transition: background 0.15s;
        }

        .btn-primary:hover { background: var(--brand-button-hover, var(--brand-hover)); color: #fff; }

        .btn-outline-primary {
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 7px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            transition: background 0.15s, border-color 0.15s;
        }

        .btn-outline-primary:hover {
            background: var(--surface-3);
            border-color: var(--border);
            color: var(--text);
        }

        /* ── Alerts ── */
        .alert {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 7px;
            color: var(--text);
            font-size: 13px;
            padding: 11px 15px;
        }

        .alert-info {
            background: rgba(44, 43, 116, 0.04);
            border-color: rgba(44, 43, 116, 0.18);
            color: var(--brand);
        }

        .alert-success {
            background: rgba(22, 163, 74, 0.05);
            border-color: rgba(22, 163, 74, 0.2);
            color: #15803d;
        }

        .alert-danger {
            background: rgba(220, 38, 38, 0.05);
            border-color: rgba(220, 38, 38, 0.18);
            color: #b91c1c;
        }

        .alert-warning {
            background: rgba(217, 119, 6, 0.05);
            border-color: rgba(217, 119, 6, 0.2);
            color: #b45309;
        }

        .btn-close { opacity: 0.5; }
        .btn-close:hover { opacity: 0.8; }

        .card {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .card-body { padding: 16px; }

        .text-primary { color: var(--brand) !important; }
        .text-muted { color: var(--gray-mid) !important; }
        .bg-light { background: var(--surface-2) !important; }

        .invalid-feedback { color: #b91c1c; font-size: 12px; }
        .is-invalid { border-color: rgba(220, 38, 38, 0.4) !important; }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            .auth-split { flex-direction: column; }
            .auth-split__form {
                flex: 1;
                max-width: none;
                border-right: none;
                padding: 36px 20px;
            }
            .auth-split__visual {
                order: -1;
                min-height: 200px;
                flex: 0 0 auto;
            }
        }

        @media (max-width: 600px) {
            .auth-nav { padding: 8px 16px; height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 4px; }
            .auth-nav-tabs { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
            .auth-nav-tab { padding: 6px 8px; white-space: nowrap; }
            .language-switcher { margin-left: 2px; padding-left: 4px; }
            .language-switcher__link { padding: 6px 6px; }
            .auth-nav-brand img { height: 32px; max-width: 180px; }
            .auth-nav--large-logo { height: 68px; }
            .auth-nav--large-logo .auth-nav-brand img { height: 48px; max-width: 220px; }
            .auth-card-body { padding: 20px; }
            .site-footer { flex-direction: column; gap: 8px; padding: 12px; text-align: center; }
        }
    