/* ===== RESET ===== */
* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.signin-page-wrapper {
    background: url('/assets/admin-background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* ===== 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: 95%;
    min-height: 550px;
}

/* ===== FORMS ===== */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

/* These specific widths and lefts fix the "broken" alignment */
.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

/* Move forms when active */
.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

.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;
}

.form-container h1 { font-weight: 700; margin-bottom: 5px; color: #1e2d27; }
.subtitle { font-size: 13px; color: #7c8a84; margin-bottom: 20px; }

.form-container input, .form-container select {
    background-color: #f3f5f4;
    border: 1px solid #d7ddda;
    padding: 10px 15px;
    margin: 6px 0;
    width: 100%;
    border-radius: 10px;
    font-size: 14px;
}

.two-columns { display: flex; gap: 10px; width: 100%; }

.main-btn {
    border-radius: 28px;
    border: 1px solid #2f5f4f;
    background-color: #2f5f4f;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 45px;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
}

/* ===== 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: 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%); }

/* GHOST BUTTON STYLES (Missing in your code) */
.ghost {
    background-color: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    border-radius: 28px;
    padding: 12px 45px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}