/* ==============================================
           LOGIN & SIGN UP PAGE - SMALLER VERSION
        =============================================== */

        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #60a5fa;
            --secondary: #7c3aed;
            --accent: #f59e0b;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --dark: #1e293b;
            --dark-2: #334155;
            --light: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;

            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

            --radius-sm: 6px;
            --radius: 10px;
            --radius-lg: 14px;
            --radius-xl: 20px;

            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            color: var(--dark);
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            font-size: 14px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 0.75rem; /* REDUCED: from 1rem to 0.75rem */
        }

        /* Return to Home Link - Smaller */
        .return-home {
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 1000;
        }

        .return-home-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem; /* REDUCED: from 1.25rem to 1rem */
            background: white;
            color: var(--primary);
            text-decoration: none;
            border-radius: var(--radius);
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .return-home-link:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            background: var(--primary);
            color: white;
        }

        .return-home-link i {
            font-size: 0.8rem;
        }

        /* Auth Main Content - Adjusted */
        .auth-main {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem 0;
            min-height: 100vh;
        }

        .auth-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .auth-grid {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            align-items: center;
        }

        @media (min-width: 992px) {
            .auth-grid {
                flex-direction: row-reverse;
                gap: 1.5rem; /* REDUCED: from 2rem to 1.5rem */
                align-items: stretch;
                justify-content: space-between;
            }
        }

        /* MODIFIED: Auth Hero - 50% width, fixed, full height, no scroll */
        .auth-hero {
            width: 50%;
            min-height: 100vh;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            padding: 2.5rem 2rem; /* REDUCED: from 3rem 2.5rem to 2.5rem 2rem */
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: linear-gradient(135deg, #4247df 0%, #9a34ff 100%);
            z-index: 1;
            overflow: hidden;
        }

        @media (max-width: 992px) {
            .auth-hero {
                display: none;
            }
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
            z-index: -1;
        }

        .hero-content {
            max-width: 450px; /* REDUCED: from 500px to 450px */
            margin: 0 auto;
            width: 100%;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(37, 99, 235, 0.1);
            color: white;
            padding: 0.4rem 0.9rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 1.25rem;
        }

        .hero-badge i {
            font-size: 0.75rem;
        }

        .hero-title {
            font-family: 'Poppins', sans-serif;
            font-size: 2.25rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 0.9rem;
            color: white;
        }

        .hero-title span {
            background:  black;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 1rem;
            color: white;
            margin-bottom: 1.75rem;
            line-height: 1.6;
        }

        .hero-features {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-top: 2rem;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.9rem;
        }

        .feature-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
        }

        .feature-text h4 {
            font-weight: 600;
            color: white;
            margin-bottom: 0.2rem;
            font-size: 0.95rem;
        }

        .feature-text p {
            color: white;
            font-size: 0.9rem;
        }

        /* Auth Card Container - WIDER */
        .auth-card-container {
            position: relative;
            max-width: 480px; /* REDUCED: from 500px to 480px */
            margin: 0 auto;
            width: 100%;
        }

        @media (min-width: 992px) {
            .auth-card-container {
                max-width: 500px; /* REDUCED: from 550px to 500px */
                flex: 1.2;
                margin: 0;
            }
        }

        .auth-card {
            background: white;
            border-radius: var(--radius-xl);
            padding: 2rem 1.5rem; /* REDUCED: from 2.5rem to 2rem (horizontal padding reduced) */
            box-shadow: var(--shadow-xl);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .auth-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        /* Auth Tabs - Smaller */
        .auth-tabs {
            display: flex;
            background: var(--gray-100);
            border-radius: var(--radius-lg);
            padding: 0.4rem;
            margin-bottom: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
        }

        .auth-tab {
            flex: 1;
            padding: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border-radius: var(--radius);
            background: transparent;
            border: none;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--gray-500);
        }

        .auth-tab:hover {
            color: var(--primary);
        }

        .auth-tab.active {
            background: white;
            color: var(--primary);
            box-shadow: var(--shadow);
        }

        /* Auth Form - Smaller */
        .auth-form {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .auth-form.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-header {
            text-align: center;
            margin-bottom: 1.75rem; /* REDUCED: from 2rem to 1.75rem */
        }

        .form-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 1rem; /* REDUCED: from 1.25rem to 1rem */
        }

        .form-title {
            font-family: 'Poppins', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.4rem;
        }

        .form-subtitle {
            color: var(--gray-500);
            font-size: 0.95rem;
        }

        /* Form Elements - Smaller */
        .form-group {
            margin-bottom: 1.1rem; /* REDUCED: from 1.25rem to 1.1rem */
        }

        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--dark-2);
            font-size: 0.9rem;
        }

        .form-label span {
            color: var(--danger);
        }

        .form-input,
        .form-select {
            width: 100%;
            padding: 0.8rem 1rem; /* REDUCED: from 0.9rem 1.1rem to 0.8rem 1rem */
            border: 2px solid var(--gray-200);
            border-radius: var(--radius);
            font-size: 0.95rem;
            transition: var(--transition);
            background: white;
        }

        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .form-input.error,
        .form-select.error {
            border-color: var(--danger);
        }

        .form-input.success,
        .form-select.success {
            border-color: var(--success);
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            right: 1rem; /* REDUCED: from 1.1rem to 1rem */
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-400);
            font-size: 1rem;
        }

        .toggle-password {
            background: none;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            font-size: 1rem;
            position: absolute;
            right: 1rem; /* REDUCED: from 1.1rem to 1rem */
            top: 50%;
            transform: translateY(-50%);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
        }

        /* Terms & Conditions - Smaller */
        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            margin-bottom: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
            cursor: pointer;
        }

        .checkbox-input {
            margin-top: 0.2rem;
            width: 16px;
            height: 16px;
            border: 2px solid var(--gray-300);
            border-radius: 4px;
            cursor: pointer;
        }

        .terms-text {
            font-size: 0.85rem;
            color: var(--gray-500);
            line-height: 1.5;
        }

        .terms-text a {
            color: var(--primary);
            text-decoration: none;
        }

        .terms-text a:hover {
            text-decoration: underline;
        }

        /* Form Options - Smaller */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
            flex-wrap: wrap;
            gap: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            cursor: pointer;
        }

        .remember-me label {
            font-size: 0.9rem;
            color: var(--gray-500);
            cursor: pointer;
        }

        .forgot-password {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        /* Submit Button - Smaller */
        .submit-btn {
            width: 100%;
            padding: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: var(--radius);
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem; /* REDUCED: from 0.6rem to 0.5rem */
            margin-bottom: 1.1rem; /* REDUCED: from 1.25rem to 1.1rem */
        }

        .submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .submit-btn:disabled {
            background: var(--gray-300);
            cursor: not-allowed;
            transform: none;
            box-shadow: var(--shadow-sm);
        }

        .submit-btn.loading {
            position: relative;
            color: transparent;
        }

        .submit-btn.loading::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border: 2px solid white;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Divider - Smaller */
        .divider {
            display: flex;
            align-items: center;
            margin: 1.5rem 0; /* REDUCED: from 1.75rem to 1.5rem */
        }

        .divider-line {
            flex: 1;
            height: 1px;
            background: var(--gray-200);
        }

        .divider-text {
            padding: 0 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            color: var(--gray-500);
            font-size: 0.85rem;
        }

        /* Social Login - Smaller */
        .social-login {
            margin-bottom: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
        }

        .social-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
        }

        .social-btn {
            padding: 0.7rem; /* REDUCED: from 0.8rem to 0.7rem */
            border: 2px solid var(--gray-200);
            border-radius: var(--radius);
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem; /* REDUCED: from 0.6rem to 0.5rem */
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--dark);
            cursor: pointer;
            transition: var(--transition);
        }

        .social-btn:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .social-btn.google {
            color: #DB4437;
        }

        .social-btn.facebook {
            color: #4267B2;
        }

        .social-btn.apple {
            color: #000000;
        }

        .social-btn.twitter {
            color: #1DA1F2;
        }

        .social-icon {
            font-size: 1.1rem;
        }

        /* Switch Auth - Smaller */
        .switch-auth {
            text-align: center;
            margin-top: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
            color: var(--gray-500);
            font-size: 0.9rem;
        }

        .switch-auth a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            margin-left: 0.4rem;
            transition: var(--transition);
        }

        .switch-auth a:hover {
            text-decoration: underline;
        }

        /* Error Messages - Smaller */
        .error-message {
            color: var(--danger);
            font-size: 0.8rem;
            margin-top: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .success-message {
            color: var(--success);
            font-size: 0.8rem;
            margin-top: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        /* Password Strength - Smaller */
        .password-strength {
            margin-top: 0.4rem;
        }

        .strength-meter {
            height: 3px;
            background: var(--gray-200);
            border-radius: 2px;
            margin-bottom: 0.2rem;
            overflow: hidden;
        }

        .strength-fill {
            height: 100%;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .strength-fill.weak {
            background: var(--danger);
            width: 33%;
        }

        .strength-fill.fair {
            background: var(--warning);
            width: 66%;
        }

        .strength-fill.strong {
            background: var(--success);
            width: 100%;
        }

        .strength-text {
            font-size: 0.75rem;
            color: var(--gray-500);
        }

        /* Modal - Smaller */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 0.75rem; /* REDUCED: from 1rem to 0.75rem */
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: var(--radius-xl);
            width: 100%;
            max-width: 420px; /* REDUCED: from 450px to 420px */
            overflow: hidden;
            animation: modalSlide 0.3s ease;
        }

        @keyframes modalSlide {
            from {
                opacity: 0;
                transform: translateY(-15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 1.1rem; /* REDUCED: from 1.25rem to 1.1rem */
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-family: 'Poppins', sans-serif;
            font-size: 1.2rem; /* REDUCED: from 1.25rem to 1.2rem */
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem; /* REDUCED: from 1.25rem to 1.2rem */
            cursor: pointer;
            width: 32px; /* REDUCED: from 35px to 32px */
            height: 32px; /* REDUCED: from 35px to 32px */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-body {
            padding: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
        }

        .modal-message {
            text-align: center;
            margin-bottom: 1.5rem; /* REDUCED: from 1.75rem to 1.5rem */
        }

        .modal-icon {
            width: 65px; /* REDUCED: from 70px to 65px */
            height: 65px; /* REDUCED: from 70px to 65px */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem; /* REDUCED: from 2rem to 1.8rem */
            margin: 0 auto 1.1rem; /* REDUCED: from 1.25rem to 1.1rem */
        }

        .modal-icon.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }

        .modal-icon.error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .modal-text {
            font-size: 1rem;
            color: var(--gray-500);
            margin-bottom: 0.4rem;
        }

        .modal-actions {
            display: flex;
            gap: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
        }

        .btn-modal-primary {
            flex: 1;
            padding: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-modal-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .btn-modal-secondary {
            flex: 1;
            padding: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            background: white;
            color: var(--dark);
            border: 2px solid var(--gray-300);
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-modal-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        /* Responsive Design - Smaller */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .social-buttons {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .form-options {
                flex-direction: column;
                align-items: flex-start;
            }

            .return-home {
                top: 12px;
                left: 12px;
            }

            .return-home-link {
                padding: 0.5rem 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
                font-size: 0.85rem;
            }
        }

        @media (max-width: 576px) {
            .hero-title {
                font-size: 1.75rem;
            }

            .form-title {
                font-size: 1.5rem;
            }

            .modal-actions {
                flex-direction: column;
            }
.auth-card {
    padding: 1.5rem 1rem;
}
            .return-home {
                position: absolute;
                top: 8px;
                left: 8px;
            }

            .return-home-link {
                padding: 0.4rem 0.6rem; /* REDUCED: from 0.7rem to 0.6rem */
                font-size: 0.8rem;
            }

            .return-home-link span {
                display: none;
            }

            .return-home-link i {
                font-size: 0.9rem;
            }
        }

        /* Loading spinner for country dropdown */
        .country-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.8rem; /* REDUCED: from 0.9rem to 0.8rem */
            color: var(--gray-400);
        }

        .country-loading i {
            margin-right: 0.4rem;
            animation: spin 1s linear infinite;
        }
/* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--gray-light);
            border-radius: var(--border-radius-xs);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: var(--border-radius-xs);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }
