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

        :root {
            --forest: #1a2f62;
            --moss: #284b86;
            --leaf: #4294dd;
            --sage: #74b5ea;
            --mint: #d9ecfb;
            --cream: #f5f9ff;
            --sand: #e8f1fb;
            --gold: #66a9e6;
        }

        body {
            font-family: 'Roboto', sans-serif;
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: var(--cream);
        }

        /* ===== LEFT PANEL ===== */
        .left-panel {
            background: linear-gradient(155deg, var(--forest) 0%, var(--moss) 60%, var(--leaf) 100%);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            padding: 60px 48px; text-align: center;
            position: relative; overflow: hidden;
        }
        .left-panel::before {
            content: '';
            position: absolute; inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        .panel-logo {
            position: relative; z-index: 1;
            width: 72px; height: 72px;
            margin-bottom: 24px;
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
        }
        .panel-title {
            font-family: 'Roboto', sans-serif;
            font-size: 38px; color: white;
            font-weight: 700; letter-spacing: 1px;
            position: relative; z-index: 1; margin-bottom: 16px;
        }
        .panel-sub {
            font-size: 15px; color: rgba(217, 236, 251, 0.85);
            line-height: 1.7; max-width: 320px;
            position: relative; z-index: 1; margin-bottom: 48px;
        }
        .panel-features {
            position: relative; z-index: 1;
            list-style: none; text-align: left; width: 100%; max-width: 280px;
        }
        .panel-features li {
            display: flex; align-items: center; gap: 12px;
            color: rgba(255,255,255,0.8); font-size: 14px;
            padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .panel-features li .ui-icon { width: 20px; height: 20px; display: block; }
        .panel-back {
            position: absolute; top: 24px; left: 24px;
            color: rgba(255,255,255,0.65); text-decoration: none;
            font-size: 13px; font-weight: 600;
            display: flex; align-items: center; gap: 6px;
            transition: color 0.2s; z-index: 10;
        }
        .panel-back:hover { color: white; }

        /* ===== RIGHT PANEL ===== */
        .right-panel {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            padding: 48px 60px;
            overflow-y: auto;
        }

        .auth-box { width: 100%; max-width: 420px; }

        /* ===== TABS ===== */
        .tabs {
            display: flex; gap: 0;
            background: var(--sand); border-radius: 12px;
            padding: 4px; margin-bottom: 36px;
        }
        .tab-btn {
            flex: 1; padding: 11px;
            background: transparent; border: none;
            border-radius: 9px; cursor: pointer;
            font-family: 'Roboto', sans-serif;
            font-size: 14px; font-weight: 700;
            color: #7f8faa; transition: all 0.25s;
        }
        .tab-btn.active {
            background: white; color: var(--forest);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* ===== FORM ===== */
        .form-section { display: none; }
        .form-section.active { display: block; }

        .form-title {
            font-family: 'Roboto', sans-serif;
            font-size: 28px; color: var(--forest);
            margin-bottom: 6px;
        }
        .form-sub { font-size: 14px; color: #778; margin-bottom: 28px; }

        .alert {
            padding: 13px 16px; border-radius: 10px;
            font-size: 14px; margin-bottom: 20px;
            display: flex; align-items: flex-start; gap: 10px;
        }
        .alert-icon { width: 16px; height: 16px; display: block; margin-top: 1px; flex-shrink: 0; }
        .alert-error { background: #fef2f2; color: #c0392b; border: 1px solid #fca5a5; }
        .alert-success { background: #eef6ff; color: #1e3a8a; border: 1px solid #93c5fd; }

        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        .form-group { margin-bottom: 18px; }
        .form-label {
            display: block; font-size: 13px; font-weight: 700;
            color: var(--forest); margin-bottom: 7px; letter-spacing: 0.3px;
        }
        .form-input {
            width: 100%; padding: 13px 16px;
            border: 1.5px solid #d4e3f3; border-radius: 10px;
            font-family: 'Roboto', sans-serif; font-size: 14px;
            color: var(--forest); background: white;
            transition: all 0.2s; outline: none;
        }
        .form-input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(66,148,221,0.1); }
        .form-input.error { border-color: #ef4444; }
        .field-error { font-size: 12px; color: #ef4444; margin-top: 5px; }

        .form-submit {
            width: 100%; padding: 14px;
            background: var(--forest); color: white;
            border: none; border-radius: 10px;
            font-family: 'Roboto', sans-serif;
            font-size: 15px; font-weight: 700;
            cursor: pointer; transition: all 0.25s;
            box-shadow: 0 4px 12px rgba(26,47,98,0.25);
        }
        .form-submit:hover { background: var(--moss); transform: translateY(-2px); }
        .form-submit:active { transform: translateY(0); }

        .form-footer {
            text-align: center; margin-top: 20px;
            font-size: 13px; color: #7a8aa4;
        }
        .form-footer a { color: var(--leaf); text-decoration: none; font-weight: 700; }
        .form-footer a:hover { text-decoration: underline; }

        .divider {
            display: flex; align-items: center; gap: 12px;
            margin: 20px 0; color: #bbb; font-size: 12px;
        }
        .divider::before, .divider::after {
            content: ''; flex: 1; height: 1px; background: #e5e7eb;
        }

        @media (max-width: 768px) {
            body { grid-template-columns: 1fr; }
            .left-panel { display: none; }
            .right-panel { padding: 40px 24px; }
        }
