@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- MODIFIED: Stretches body to full screen --- */
body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    margin: 0;
    color: #ffffff;
    overflow: hidden; /* Prevents scrollbars */
    background-color: #252433; /* Base color from your form panel */
}

/* --- MODIFIED: Stretches wrapper to full screen --- */
.auth-wrapper {
    width: 100vw;  /* Full screen width */
    height: 100vh; /* Full screen height */
    display: flex;
    background-color: #252433; /* Main panel color */
    overflow: hidden; 
    /* All sizing, border-radius, and box-shadow removed */
}

/* --- 1. LEFT INFO PANEL (Modified) --- */
.info-panel {
    flex-basis: 45%;
    /* Swapped image for solid color to match right panel */
    background-color: #252433; 
    padding: 20px 40px; /* MODIFIED: Makes image taller */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the content box vertically */
    align-items: center;   /* Center the content box horizontally */
    color: #ffffff;
}

/* * NOTE: The old .info-panel::after rule was here and has been
 * DELETED as it was causing the "unclickable" bug.
 */

.info-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
}
.tagline-group {
    z-index: 2;
}
.tagline-group h2 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 10px;
}
.tagline-group p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}
.carousel-dots {
    display: flex;
    gap: 8px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
}
.carousel-dots .dot.active {
    background-color: #ffffff;
    width: 25px;
    border-radius: 5px;
}


/* --- 2. RIGHT FORM PANEL --- */
/* --- MODIFIED: Centers the form content vertically & horizontally --- */
.auth-container {
    flex-basis: 55%;
    background: #252433;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    
    /* --- FIX: Makes the form clickable --- */
    position: relative;
    z-index: 2;
    /* --- END OF FIX --- */
    
    /* Remove old glassmorphism styles */
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* --- MODIFIED: Added max-width --- */
.auth-container h2 {
    font-weight: 600;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
    max-width: 420px;
}

/* --- MODIFIED: Added max-width --- */
.sub-header {
    font-size: 1em;
    color: #a0a0b0;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    max-width: 420px;
}
.sub-header a {
    color: #a98dff;
    text-decoration: none;
    font-weight: 500;
}
.sub-header a:hover {
    text-decoration: underline;
}

/* --- MODIFIED: Added max-width --- */
.auth-box {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Increased gap */
    width: 100%;
    max-width: 420px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #888;
}

#togglePass {
    left: auto;  /* This overrides the generic 'left: 18px' */
    right: 18px; /* This positions it on the right */
    cursor: pointer;
}
#togglePass:hover {
    color: #fff;
}

/* NEW Input style to match dark theme */
.input-group input {
    width: 100%;
    padding: 16px 50px; /* (T/B, R/L) */
    border-radius: 12px;
    border: 1px solid #4a4959;
    outline: none;
    background-color: #363545; /* Darker input */
    color: #ffffff;
    font-size: 1em;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}
.input-group input:focus {
    border-color: #8a63d2; /* Purple highlight */
    background-color: #1a1926;
    box-shadow: 0 0 10px rgba(138, 99, 210, 0.3);
}
.input-group input::placeholder {
    color: #888;
}

.forgot-text {
    font-size: 0.9em;
    text-align: right;
    margin: -10px 0 5px 0;
}
.forgot-text a {
    color: #a0a0b0; 
    font-weight: 500;
    text-decoration: none;
}
.forgot-text a:hover {
    text-decoration: underline;
    color: #fff;
}

/* NEW Primary button style */
button#loginBtn {
    background: #8a63d2; /* Purple */
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
button#loginBtn:hover {
    background: #7b5aff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(138, 99, 210, 0.3);
}

/* Spinner (unchanged, but updated color) */
button.loading::after {
    border-top-color: #ffffff; /* White spinner */
}

/* Error message (unchanged) */
.auth-message {
    text-align: center;
    min-height: 20px;
    font-size: 0.9em;
    color: #ffc2d1;
}

/* --- Social Login (styles remain, HTML is commented) --- */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 20px 0;
    font-size: 0.9em;
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #4a4959;
}
.separator:not(:empty)::before {
    margin-right: .5em;
}
.separator:not(:empty)::after {
    margin-left: .5em;
}

.social-login {
    display: flex;
    gap: 15px;
}
.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #363545;
    border: 1px solid #4a4959;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: #4a4959;
}
.social-btn i {
    font-size: 1.4em;
}

/* Terms (Restyled for dark mode) */
.auth-terms {
    font-size: 0.8em;
    color: #a0a0b0;
    text-align: center;
    margin-top: 20px;
}
.auth-terms a {
    color: #c0c0d0;
    font-weight: 500;
    text-decoration: none;
}
.auth-terms a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    /* --- MODIFIED: Updated for full screen mobile --- */
    .auth-wrapper {
        flex-direction: column;
        height: 100vh; /* Full height */
        width: 100vw; /* Full width */
        overflow-y: auto; /* Allow scrolling on small screens */
    }

    .info-panel {
        display: none; /* Hide info panel on mobile */
    }
    
    /* --- MODIFIED: Aligns form to top on mobile --- */
    .auth-container {
        flex-basis: 100%;
        padding: 40px 30px;
        justify-content: flex-start; /* Align form to top on mobile */
        padding-top: 60px;
    }
    .auth-container h2 {
        font-size: 1.8em;
    }
}

/* --- NEW: Content box inside left panel --- */
.info-panel-content {
    /* --- FIX: Corrected dimensions --- */
    width: 100%;
    height: 100%;
    background-image: url('backgrounds/1.jpg'); /* Image now here */
    background-size: cover;
    background-position: center;
    border-radius: 20px; /* Rounded corners like the red box */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* For the new overlay */
    overflow: hidden; /* Ensures overlay respects border-radius */
}

/* --- NEW: Overlay for the content box --- */
.info-panel-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* --- FIX: Corrected dimensions --- */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: 1;
    /* The z-index: 2 on .info-logo and .tagline-group will lift them above this */
}


/* --- ADD THIS TO THE BOTTOM OF YOUR LOGIN.CSS --- */

/* Style for Forgot Password & OTP buttons */
button#fpSendBtn,
button#verifyOtpBtn {
    background: #8a63d2; /* Purple */
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button#fpSendBtn:hover,
button#verifyOtpBtn:hover {
    background: #7b5aff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(138, 99, 210, 0.3);
}

/* Loading spinner for new buttons */
button#fpSendBtn.loading span,
button#verifyOtpBtn.loading span {
    visibility: hidden;
    opacity: 0;
}

button#fpSendBtn.loading::after,
button#verifyOtpBtn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}


/* --- ADD THIS TO THE BOTTOM OF YOUR LOGIN.CSS --- */

/* Style for Reset Password button */
button#rpBtn {
    background: #8a63d2; /* Purple */
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button#rpBtn:hover {
    background: #7b5aff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(138, 99, 210, 0.3);
}

/* Loading spinner */
button#rpBtn.loading span {
    visibility: hidden;
    opacity: 0;
}

button#rpBtn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

/* Style for readonly email input */
.input-group input[readonly] {
    background-color: #2a2935;
    color: #888;
    cursor: not-allowed;
}

/* --- ADD THIS TO THE BOTTOM OF YOUR LOGIN.CSS --- */

#resetTogglePass {
    left: auto;  /* Override generic 'left: 18px' */
    right: 18px; /* Position it on the right */
    cursor: pointer;
}
#resetTogglePass:hover {
    color: #fff;
}
