/* Container styling */
.login-container {
    background-color: #2d3748; 
    padding: 1.5rem; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    width: 100%;
    max-width: 28rem; 
    margin: 0 auto;
}

/* Title styling */
.login-title {
    font-size: 1.5rem; 
    font-weight: bold; 
    margin-bottom: 1rem; 
    color: white;
}

/* Form group styling */
.form-group {
    margin-bottom: 1rem; 
}

/* Label styling */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0; 
    margin-bottom: 0.25rem; 
}

/* Input styling */
.form-input {
    width: 100%; 
    padding: 0.5rem; 
    border: 1px solid #4a5568; 
    border-radius: 0.375rem; 
    background-color: #4a5568; 
    color: white;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-input:focus {
    border-color: #48bb78; 
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.5); 
}

/* Button styling */
.login-button {
    width: 100%; 
    background-color: #48bb78; 
    color: white;
    font-weight: bold; 
    padding: 0.5rem 1rem; 
    border-radius: 0.375rem; 
    transition: background-color 0.2s ease;
    margin-top: 1rem; 
}

.login-button:hover {
    background-color: #38a169; 
}

/* Container for the flipping card */
.form-container {
    perspective: 1000px; 
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
    height: 400px;
}

/* Card that flips */
.form-card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.7s ease-in-out;
}

/* Login and Signup containers */
.login-container,
.signup-container {
    width: 100%;
    height: 120%;
    position: absolute;
    backface-visibility: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2d3748; 
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Signup form is rotated initially */
.signup-container {
    transform: rotateY(180deg);
}

/* Flip effect when active */
.form-container.flipped .form-card {
    transform: rotateY(180deg);
}