/* Main container styling */
.form-container {
    max-width: 500px;
    margin: 1rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Stack elements */
    min-height: 400px; /* Minimum height */
}

/* Button styling */
.toggle-btn-group {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
}

.toggle-btn-group button {
    flex: 1;
    border: none;
    padding: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.toggle-btn-group .active {
    background-color: #009970;
    color: #fff;
}

.toggle-btn-group button:not(.active) {
    background-color: #d4d4d4;
    color: #000;
}

/* Form content styling */
.form-content {
    position: relative; /* Changed from absolute to relative for better alignment */
    display: flex;
    transition: transform 0.5s ease;
}

#login-form,
#register-form {
    width: 100%; /* Set form width to 100% */
    display: none; /* Hide both forms by default */
}

#login-form.active,
#register-form.active {
    display: block; /* Show active form */
}

/* Responsive design */
@media (max-width: 576px) {
    .form-container {
        width: 100%;
        padding: 1.5rem;
    }
}