/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.signin-page-wrapper {
    background: url('/assets/user-background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ===== MAIN CONTAINER ===== */
.container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 100%;
    min-height: 550px;
}

/* Common form styles */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.form-container form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
    text-align: center;
}

/* Scroll handling for the long signup form */
.sign-up-container form {
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.form-container h1 {
    font-weight: 700;
    margin: 0;
    color: #1f2d27;
}

.subtitle {
    font-size: 13px;
    color: #5c6e67;
    margin-bottom: 15px;
}

/* ===== INPUTS & BUTTONS ===== */
.form-container input {
    background-color: #f1f3f2;
    border: 1px solid #dcdcdc;
    padding: 10px 15px;
    margin: 5px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 14px;
}

.two-columns {
    display: flex;
    gap: 10px;
    width: 100%;
}

.dob-group {
    display: flex;
    gap: 5px;
    width: 100%;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
}

button {
    border-radius: 30px;
    border: 1px solid #2f5f4f;
    background-color: #2f5f4f;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    margin-top: 15px;
}

button:hover { opacity: 0.9; }
button:active { transform: scale(0.95); }

button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

/* ===== OVERLAY PANEL ===== */
.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: #2f5f4f;
    background: linear-gradient(to right, #2f5f4f, #1f3d33);
    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;
}

.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%); }

/* Animation Logic */
.sign-in-container { left: 0; width: 50%; z-index: 2; }
.sign-up-container { left: 0; width: 50%; opacity: 0; z-index: 1; }

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

.container.right-panel-active .sign-in-container { transform: translateX(100%); }

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* Custom Scrollbar for Signup */
.sign-up-container form::-webkit-scrollbar { width: 5px; }
.sign-up-container form::-webkit-scrollbar-thumb { background: #2f5f4f; border-radius: 10px; }