* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #000;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex-wrap: wrap;
}

.switch-box {
    width: 100%;
    max-width: 300px;
    background: black;
    color: gold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: transform 0.6s ease-in-out;
    z-index: 2;
    flex-shrink: 0;
}

.switch-box button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    background-color: black;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.switch-box button:hover {
    background-color: gold;
    color: black;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 100px;
}

.form-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
    padding: 30px;
    height: 700px;
    /* added this new */
}

.form-box {
    width: 100%;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.form-box.hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.form-box.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: black;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #111;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: gold;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-bottom: 20px;
}

.btn:hover {
    background-color: goldenrod;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.forgot-password {
    color: gold;
    text-decoration: none;
    font-weight: 500;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .switch-box {
        max-width: 100%;
        width: 100%;
        padding: 20px;
    }

    .form-wrapper {
        padding: 20px;
    }

    .form-box {
        position: relative;
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    .form-box.hidden {
        display: none;
    }

    .form-box.active {
        display: block;
    }
}