
/* Main authentication container - full screen height */
.auth-container {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-soft) 100%);
    margin: 0;
    position: relative;
}

/* Main wrapper for the sliding panel card */
.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Forms container - holds both sign-in and sign-up panels */
.auth-forms-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

/* ============================================
   Form Panels (Sign In & Sign Up)
   ============================================ */

/* Base styles for both form panels */
.auth-form-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    z-index: 2;
}

/* Sign-in panel positioned on the left */
.auth-form-panel.sign-in {
    left: 0;
}

/* Sign-up panel positioned on the right */
.auth-form-panel.sign-up {
    left: 50%;
}

/* When active, slide sign-in panel to the right (off-screen) */
.auth-wrapper.active .auth-form-panel.sign-in {
    transform: translateX(100%);
}

/* Sign-up panel stays in place - no transform needed */
.auth-wrapper.active .auth-form-panel.sign-up {
    transform: translateX(0);
}

/* ============================================
   Form Content
   ============================================ */

/* Container for form content */
.auth-form-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    height: 100%;
    background: #fff;
}

/* Form title styling */
.auth-form-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semibold */
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Form element container */
.auth-form-content form {
    width: 100%;
    max-width: 320px;
}

/* Input field styling */
.auth-form-content .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

/* Input field focus state */
.auth-form-content .form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(16, 3, 42, 0.25);
}

/* Submit button styling */
.auth-form-content .btn-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-deep) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Submit button hover effect */
.auth-form-content .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 3, 42, 0.4);
}

/* ============================================
   Overlay Panel (Pink Gradient Block)
   ============================================ */

/* Single overlay - pink gradient block that slides */
.auth-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-deep) 0%, var(--secondary-teal) 100%);
    transition: transform 0.6s ease-in-out;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--white);
}

/* When active, overlay slides to the left (covering sign-in form) */
.auth-wrapper.active .auth-overlay {
    transform: translateX(-100%);
}

/* Overlay content container */
.auth-overlay-content {
    text-align: center;
    position: absolute;
    width: 100%;
    padding: 3rem;
    transition: opacity 0.3s ease 0.3s;
    pointer-events: none;
}

/* Enable pointer events on visible overlay content */
.auth-overlay-content.overlay-signup {
    pointer-events: auto;
}

.auth-wrapper.active .auth-overlay-content.overlay-signin {
    pointer-events: auto;
}

/* Overlay heading */
.auth-overlay-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semibold */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Overlay description text */
.auth-overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Overlay toggle button */
.auth-overlay-btn {
    padding: 0.75rem 2.5rem;
    border-radius: 25px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

/* Overlay button hover effect */
.auth-overlay-btn:hover {
    background: #fff;
    color: #f5576c;
    transform: scale(1.05);
}

/* Show sign-up overlay content when overlay is on right (default/login state) */
.auth-overlay .overlay-signup {
    opacity: 1;
}

.auth-wrapper.active .auth-overlay .overlay-signup {
    opacity: 0;
    transition: opacity 0.1s ease 0s;
}

/* Hide sign-in overlay content when overlay is on right (default/login state) */
.auth-overlay .overlay-signin {
    opacity: 0;
    transition: opacity 0.1s ease 0s;
}

/* Show sign-in overlay content when overlay is on left (active/register state) */
.auth-wrapper.active .auth-overlay .overlay-signin {
    opacity: 1;
    transition: opacity 0.3s ease 0.3s;
}

/* ============================================
   Form Elements
   ============================================ */

/* Remember me checkbox container */
.form-check {
    margin-bottom: 1rem;
}

/* Checked checkbox styling */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Mobile and tablet adjustments */
@media (max-width: 768px) {
    /* Adjust wrapper height for mobile */
    .auth-wrapper {
        height: auto;
        min-height: 600px;
    }

    /* Make panels and overlay full width on mobile */
    .auth-form-panel,
    .auth-overlay {
        width: 100%;
    }

    /* Position sign-up panel off-screen initially */
    .auth-form-panel.sign-up {
        left: 100%;
    }

    /* Position overlay on right initially */
    .auth-overlay {
        left: 100%;
    }

    /* Slide sign-in panel off-screen when active */
    .auth-wrapper.active .auth-form-panel.sign-in {
        transform: translateX(-100%);
    }

    /* Sign-up panel comes into view when active */
    .auth-wrapper.active .auth-form-panel.sign-up {
        transform: translateX(0);
    }

    /* Slide overlay to left when active */
    .auth-wrapper.active .auth-overlay {
        transform: translateX(-100%);
    }
}
