/* --- Authentication Specific Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.auth-body {
    background-color: #fdfaf5; /* Cream background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    width: 780px; 
    max-width: 100%;
    /* STRICT HEIGHT: This stops the whole screen from scrolling! */
    height: 550px; 
}

.container h1 {
    color: #7a2b2b;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* Forms */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 50px;
    min-height: 100%;
    height: max-content; /* Forces the form to stretch and trigger the scroll */
    box-sizing: border-box;
    text-align: center;
}

.input-group { width: 100%; }

input, select {
    background-color: #f3f3f3;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 10px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

input:focus {
    border-color: #7a2b2b;
    background-color: #fff;
}

.split-input {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Buttons */
.btn-primary { 
    background-color: #7a2b2b; 
    color: white; 
    border: none; 
    padding: 12px 40px; 
    border-radius: 50px; 
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #5c1f1f;
    transform: scale(1.02);
}

.ghost-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 35px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.3s;
}

.ghost-btn:hover {
    background: white;
    color: #7a2b2b;
}

.back-link {
    text-decoration: none;
    color: #7a2b2b;
    font-size: 13px;
    margin-top: 25px;
    display: block;
    font-weight: 600;
}

.error-text {
    color: #e74c3c;
    font-size: 12px;
    display: none;
    margin-bottom: 10px;
}

/* Sliding Logic */
.sign-in-container { left: 0; width: 50%; z-index: 2; overflow: hidden; }

.sign-up-container { 
    left: 0; 
    width: 50%; 
    opacity: 0; 
    z-index: 1; 
    /* THIS PUTS THE SCROLLBAR EXACTLY WHERE YOU DREW THE BLUE LINE */
    overflow-y: auto; 
    overflow-x: hidden;
}

/* Custom Maroon Scrollbar for the Sign-Up Form */
.sign-up-container::-webkit-scrollbar { width: 6px; }
.sign-up-container::-webkit-scrollbar-track { background: transparent; }
.sign-up-container::-webkit-scrollbar-thumb { background: #7a2b2b; border-radius: 10px; }

.container.right-panel-active .sign-in-container { transform: translateX(100%); opacity: 0; }
.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* Overlay */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container { transform: translateX(-100%); }

.overlay {
    background: #7a2b2b;
    background: linear-gradient(to right, #913a3a, #7a2b2b);
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay { transform: translateX(50%); }

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease-in-out;
    box-sizing: border-box; 
}

.overlay-panel h1 {
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    width: 100%;
    margin: 0 0 10px 0;
}

.overlay-panel p {
    color: white;
    text-align: center;
    width: 100%;
    margin: 0 0 25px 0;
}

.overlay-left { transform: translateX(-20%); }
.container.right-panel-active .overlay-left { transform: translateX(0); }

.overlay-right { right: 0; transform: translateX(0); }
.container.right-panel-active .overlay-right { transform: translateX(20%); }

/* Mobile */
.mobile-toggle { display: none; margin-top: 15px; font-size: 14px; }
.mobile-toggle span { color: #7a2b2b; font-weight: bold; cursor: pointer; text-decoration: underline; }

@media (max-width: 768px) {
    .overlay-container { display: none; }
    .sign-in-container, .sign-up-container { width: 100%; overflow-y: auto; }
    .container.right-panel-active .sign-in-container { opacity: 0; }
    .mobile-toggle { display: block; }
}