        :root {
            --primary-dark: #052b59;
            --primary-accent: #fac864;
            --primary-light: #fff6e3;
            --secondary-blue: #1a4f72;
            --secondary-light: #f8f9fa;
            --text-dark: #212529;
            --text-light: #6c757d;
            --success: #28a745;
            --error: #dc3545;
            --transition: all 0.3s ease;
            --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
            --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Manrope', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        .background-wrapper {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            overflow: hidden;
        }

        .background-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.15;
            animation: float 15s infinite ease-in-out;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            background: var(--primary-dark);
            top: -100px;
            left: -100px;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 200px;
            height: 200px;
            background: var(--primary-accent);
            bottom: -50px;
            right: 15%;
            animation-delay: -5s;
        }

        .shape-3 {
            width: 150px;
            height: 150px;
            background: var(--secondary-blue);
            top: 30%;
            left: 70%;
            animation-delay: -10s;
        }

        .login-container {
            width: 100%;
            max-width: 420px;
            perspective: 1000px;
            transition: var(--transition);
        }

        .register-container {
            width: 100%;
            max-width: 600px;
            perspective: 1000px;
            display: none;
        }

        .login-card, .register-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            transform-style: preserve-3d;
            transition: var(--transition);
            max-height: 95vh;
            overflow-y: auto;
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
            padding: 20px;
            text-align: center;
            color: white;
            position: relative;
        }

        .logo-container {
            margin-bottom: 10px;
        }

        .logo {
            width: 80px;
            height: 80px;
            margin: 0 auto;
            background: #fff6e3;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            border: 3px solid var(--primary-accent);
            box-shadow: 0 0 0 4px rgba(239, 200, 100, 0.3);
        }

        .logo img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            margin-left: -6px;
            margin-bottom: -4px;
        }

        .brand-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 5px;
            letter-spacing: 0.5px;
            color: var(--primary-accent);
        }

        .brand-subtitle {
            font-size: 12px;
            opacity: 0.85;
            font-weight: 300;
            color: var(--primary-light);
        }

        .card-body {
            padding: 20px;
        }

        .form-title {
            font-size: 18px;
            color: var(--primary-dark);
            margin-bottom: 15px;
            text-align: center;
            font-weight: 500;
        }

        .input-group {
            position: relative;
            margin-bottom: 12px;
        }

        .input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            transition: var(--transition);
            font-size: 14px;
        }

        .form-input, .form-select {
            width: 100%;
            padding: 10px 10px 10px 35px;
            border: 1px solid #e1e5eb;
            border-radius: 6px;
            font-size: 14px;
            transition: var(--transition);
            background: var(--secondary-light);
        }

        .form-select {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 12px;
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 3px rgba(5, 43, 89, 0.1);
        }

        .form-input:focus + .input-icon, .form-select:focus + .input-icon {
            color: var(--primary-dark);
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
        }

        .password-toggle:hover {
            color: var(--primary-dark);
        }

        .login-btn, .register-btn {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }

        .login-btn:hover, .register-btn:hover {
            background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-dark) 100%);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .login-btn:active, .register-btn:active {
            transform: translateY(0);
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 15px 0;
            color: var(--text-light);
            font-size: 12px;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e1e5eb;
        }

        .divider span {
            padding: 0 10px;
        }

        .footer-text {
            text-align: center;
            color: var(--text-light);
            font-size: 10px;
            margin-top: 10px;
            line-height: 16px;
        }

        .register-link {
            text-align: center;
            margin-top: 12px;
            color: var(--text-light);
            font-size: 13px;
        }

        .register-link a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .register-link a:hover {
            color: var(--secondary-blue);
            text-decoration: underline;
        }

        .back-to-login {
            text-align: center;
            margin-top: 12px;
            color: var(--text-light);
            font-size: 13px;
        }

        .back-to-login a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .back-to-login a:hover {
            color: var(--secondary-blue);
            text-decoration: underline;
        }

        .form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }

        .form-row .input-group {
            flex: 1;
            margin-bottom: 0;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 10px 15px;
            border-radius: 5px;
            color: white;
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.3s, transform 0.3s;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .notification.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .notification.success {
            background-color: #4CAF50;
        }
        
        .notification.error {
            background-color: #f44336;
        }
        
        .spinner {
            border: 2px solid #f3f3f3;
            border-top: 2px solid #fac864;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            display: inline-block;
            vertical-align: middle;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            33% {
                transform: translateY(-20px) rotate(10deg);
            }
            66% {
                transform: translateY(20px) rotate(-10deg);
            }
        }

        /* Fix notification text color */
        .notification {
            color: #000000 !important; /* Black text */
            background: #ffffff !important; /* White background */
            border: 1px solid #e0e0e0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .notification.success {
            background: #d4edda !important;
            color: #155724 !important;
            border-color: #c3e6cb;
        }
        
        /* Additional styles for new form fields */
        .select-group {
            position: relative;
            margin-bottom: 20px;
        }
        
        .select-group i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
            z-index: 2;
        }
        
        .form-select {
            width: 100%;
            padding: 10px 10px 10px 35px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            background-color: white;
            transition: all 0.3s ease;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }
        
        .form-select:focus {
            outline: none;
            border-color: #052b59;
            box-shadow: 0 0 0 3px rgba(5, 43, 89, 0.1);
        }
        
        .form-row {
            display: flex;
            gap: 15px;
        }
        
        .form-row .input-group,
        .form-row .select-group {
            flex: 1;
        }
        
        .english-message {
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
            margin-bottom: 15px;
            padding: 8px 12px;
            background-color: #f8f9fa;
            border-radius: 4px;
            display: none;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(5, 43, 89, 0.3);
            border-radius: 50%;
            border-top-color: #052b59;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Date input styling */
        .form-input[type="date"] {
            padding: 10px 10px 10px 35px;
            font-family: 'Manrope', sans-serif;
        }
        
        .form-input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            padding: 5px;
            border-radius: 3px;
        }

        /* Fix for passport icon alignment */
        .input-group .fa-passport {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            transition: var(--transition);
            font-size: 14px;
            z-index: 2;
            margin-bottom: -20px;
        }

        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 12px;
            }
            
            .register-container {
                max-width: 420px;
            }
        }

        @media (max-width: 480px) {
            .login-card, .register-card {
                border-radius: 12px;
            }
            
            .card-header, .card-body {
                padding: 15px;
            }
            
            .brand-name {
                font-size: 18px;
            }
        }

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.form-row .input-group,
.form-row .select-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
}