:root {
    --primary-color: #0d6efd;
    --secondary-color: #00c853;
    --dark-bg: #1e293b;
    --light-bg: #f0f2f5;
}

body {
    background: var(--light-bg);
    font-family: 'Poppins', 'Hind', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin: 0 5px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.auth-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(0, 200, 83, 0.05) 100%);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(50px);
    z-index: 0;
    animation: floatShape 6s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(13, 110, 253, 0.2);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(0, 200, 83, 0.2);
    border-radius: 50%;
    animation-delay: 1s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 40px); }
}

/* --- AUTH CARD (Updated for Form Switching) --- */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Forgot Password के लिए जोड़ा गया: */
    min-height: 500px; /* यह सुनिश्चित करता है कि फॉर्म बदलते समय कार्ड छोटा-बड़ा न हो */
    overflow: hidden;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn-auth {
    background: linear-gradient(to right, #0d6efd, #0043a7);
    color: white;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    background: linear-gradient(to right, #0043a7, #0d6efd);
    color: white;
}

footer {
    background: var(--dark-bg);
    color: #a0aec0;
    padding: 50px 0 20px;
    font-size: 14px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

.social-circle {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 5px;
    color: white;
    transition: 0.3s;
}

.social-circle:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Center Alert Popup (Modern) --- */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Initial state */
    align-items: center;
    justify-content: center;
}

.custom-alert-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- FORGOT PASSWORD FORM STYLES (NEW) --- */

/* यह क्लास सभी फॉर्म्स (Login, OTP, Reset) पर लागू होती है */
.auth-form-step {
    width: 100%;
    /* डिफ़ॉल्ट रूप से कोई भी फॉर्म नहीं दिखेगा, सिवाय 'active-form' के */
    display: none;
    animation: fadeIn 0.5s ease;
}

/* जो फॉर्म active है उसे दिखाएं */
.auth-form-step.active-form {
    display: block;
}

/* फॉर्म स्विच करते समय हल्का फेड एनिमेशन */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hidden क्लास (JS टॉगल के लिए) */
.hidden-form {
    display: none !important;
}


/* Custom Modal Styling */
#mobileUpdateModal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

#mobileUpdateModal .modal-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    border-bottom: none;
    justify-content: center;
    padding: 20px;
}

#mobileUpdateModal .modal-body {
    padding: 30px;
}

#mobileUpdateModal .icon-box {
    width: 80px;
    height: 80px;
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* Ensure Custom Alert is above Bootstrap Modal */
.custom-alert-overlay {
    z-index: 9999 !important; /* Modal se upar rahega */
}
