.auth-page { padding: 40px 0 60px; min-height: 60vh; }

        .auth-container {
            max-width: 900px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        }

        .auth-tab-btns {
            display: flex;
            grid-column: 1 / -1;
        }
        .auth-tab-btn {
            flex: 1;
            padding: 18px;
            background: #f5f5f5;
            border: none;
            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            color: #999;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 3px solid transparent;
        }
        .auth-tab-btn.active {
            background: white;
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        .auth-tab-btn:hover:not(.active) { color: #666; }

        .auth-panels {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .auth-form-side {
            padding: 40px;
        }

        .auth-promo-side {
            background: linear-gradient(135deg, #0054A6 0%, #003366 100%);
            color: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .auth-promo-side h2 {
            font-size: 24px;
            margin-bottom: 16px;
        }
        .auth-promo-side p {
            font-size: 14px;
            opacity: 0.85;
            line-height: 1.7;
            margin-bottom: 20px;
        }
        .promo-features {
            list-style: none;
        }
        .promo-features li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            font-size: 14px;
            opacity: 0.9;
        }
        .promo-features li i {
            width: 32px;
            height: 32px;
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .auth-tab-content { display: none; }
        .auth-tab-content.active { display: block; }

        .auth-form-side h3 {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 6px;
        }
        .auth-form-side .subtitle {
            font-size: 13px;
            color: #999;
            margin-bottom: 28px;
        }

        .fg { margin-bottom: 18px; }
        .fg label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #555;
            margin-bottom: 6px;
        }
        .fg label .req { color: #e74c3c; }
        .fg .inp-wrap { position: relative; }
        .fg .inp-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #bbb;
            font-size: 15px;
        }
        .fg input, .fg select {
            width: 100%;
            padding: 12px 14px 12px 42px;
            border: 2px solid #e8e8e8;
            border-radius: 10px;
            font-family: inherit;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .fg input:focus, .fg select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0,84,166,0.08);
        }
        .fg input.err { border-color: #e74c3c; }
        .fg .err-text {
            font-size: 11px;
            color: #e74c3c;
            margin-top: 4px;
            display: none;
        }
        .fg input.err + .err-text,
        .fg input.err ~ .err-text { display: block; }

        .fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

        .fg-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
            font-size: 13px;
            color: #666;
        }
        .fg-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
        .fg-check a { color: var(--primary); }

        .btn-auth {
            width: 100%;
            padding: 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: background 0.2s;
        }
        .btn-auth:hover { background: #003d7a; }

        .auth-divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 24px 0;
            color: #ccc;
            font-size: 12px;
        }
        .auth-divider::before, .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e8e8e8;
        }

        .auth-switch {
            text-align: center;
            font-size: 13px;
            color: #999;
        }
        .auth-switch button {
            background: none;
            border: none;
            color: var(--primary);
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
        }

        /* Toast */
        .auth-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 16px 28px;
            border-radius: 10px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            z-index: 10000;
            transform: translateX(120%);
            transition: transform 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }
        .auth-toast.show { transform: translateX(0); }
        .auth-toast.success { background: #27ae60; }
        .auth-toast.error { background: #e74c3c; }

        /* Success state */
        .register-success {
            text-align: center;
            padding: 30px 0;
        }
        .register-success .icon {
            width: 72px;
            height: 72px;
            background: #27ae60;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 32px;
            color: white;
        }
        .register-success h3 {
            font-size: 20px;
            color: #1a1a2e;
            margin-bottom: 10px;
        }
        .register-success p {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
        }

        /* Profile dropdown in header */
        .user-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
            position: relative;
        }
        .user-badge i { font-size: 20px; }
        .user-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            min-width: 200px;
            z-index: 200;
            margin-top: 8px;
            overflow: hidden;
        }
        .user-menu.open { display: block; }
        .user-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 18px;
            font-size: 13px;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.15s;
        }
        .user-menu a:hover { background: #f5f5f5; }
        .user-menu a:last-child { border-bottom: none; }
        .user-menu a i { width: 16px; color: #999; }

        @media (max-width: 768px) {
            .auth-container { grid-template-columns: 1fr; }
            .auth-panels { grid-template-columns: 1fr; }
            .auth-promo-side { display: none; }
            .auth-form-side { padding: 28px; }
        }