:root {
    --primary: #961327;
    --primary-dark: #7d1020;
    --primary-light: #b0162f;
    --gradient: linear-gradient(135deg, #b0162f 0%, #7d1020 100%);
    --shadow-red: 0 10px 25px rgba(150, 19, 39, 0.3);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.05);
    --bg-body-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --bg-card-light: white;
    --text-primary-light: #1f2937;
    --text-secondary-light: #4b5563;
    --border-light: #e5e7eb;
    --input-border-light: #d1d5db;
}
* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}
body {
    background: var(--bg-body-light);
    color: var(--text-primary-light);
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], select {
    background-color: #f9fafb; 
    color: var(--text-primary-light);
    border: 1px solid var(--input-border-light);
    border-radius: 12px; 
    padding: 12px 16px;
    transition: all 0.2s ease-in-out;
    width: 100%;
    height: 50px;
}
input:focus, select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(150, 19, 39, 0.2) !important;
    outline: none;
}

input:invalid { box-shadow: none; }
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(150, 19, 39, 0.4);
}
.card {
    background: var(--bg-card-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--border-light);
}
#notificationContainer {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column-reverse;
    gap: 10px;
}
.notification {
    padding: 16px 24px;
    background: var(--bg-card-light); border-radius: 12px;
    box-shadow: var(--shadow-deep); border-right: 4px solid;
    transform: translateX(400px); transition: all 0.3s ease;
    opacity: 0; visibility: hidden;
}
.notification.show { transform: translateX(0); opacity: 1; visibility: visible; }
.notification.success { border-color: #10b981; }
.notification.error { border-color: #ef4444; }
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px; height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block; margin-right: 8px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#auth-section .tab-button {
    background-color: #f3f4f6; color: #4b5563;
    transition: all 0.2s ease; font-weight: 600;
}
#auth-section .tab-button.active {
    background: var(--gradient); color: white;
    box-shadow: var(--shadow-red);
}
.section-hidden { display: none !important; }

.select2-container { width: 100% !important; }
.select2-container .select2-selection--single {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 8px !important;
    background-color: #f9fafb !important;
    border: 1px solid var(--input-border-light) !important;
    border-radius: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary-light) !important;
    line-height: normal !important;
    padding-left: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important; right: 8px !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(150, 19, 39, 0.2) !important;
}
.select2-dropdown {
    border: 1px solid var(--input-border-light) !important;
    border-radius: 12px !important;
    background-color: var(--bg-card-light) !important;
    box-shadow: var(--shadow-deep);
}
.select2-search__field {
    border-radius: 8px !important;
    border: 1px solid var(--input-border-light) !important;
}
.select2-results__option { padding: 12px 16px !important; }
.select2-results__option--highlighted { background-color: #f3f4f6 !important; color: var(--text-primary-light) !important; }
#password-strength-meter ul {
    margin-left: 5px;
}

#password-strength-meter li {
    transition: color 0.3s ease-in-out;
}

#password-strength-meter li.valid {
    color: #10b981;
}

#password-strength-meter li.valid::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

#password-strength-meter li:not(.valid)::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

/* WhatsApp input with country calling code (global) */
.whatsapp-input-group{display:flex;gap:10px;align-items:center;}
.whatsapp-input-group select{flex:0 0 130px;width:130px;padding-right:10px;}
.whatsapp-input-group input{flex:1 1 auto;width:auto;}


#auth-section .tab-button:disabled { opacity: 0.6; cursor: not-allowed; }
#otp-code { text-align: center; letter-spacing: 10px; font-size: 20px; font-weight: 700; }
