main{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.login-container{
    width: 600px;
    height: 650px;
    background: hsl(353, 85%, 53%, 70%);
    border: 2px solid var(--white);
    margin: 50px 2em;
    margin-bottom: 100px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 3em;
    box-shadow: var(--shadow-l);
}

.shadow-small{
    box-shadow: var(--shadow-s);
}

.login-logo{
    width: 200px;
    margin: 20px;
    margin-bottom: 0;
}

.login-container h2{
    margin: 20px;
}

.login-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-form input{
    width: 300px;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
}

.login-form button,
.create-account-form-btn{
    width: 300px;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background-color: var(--white);
    color: var(--primary-red);
    font-size: 1em;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.login-form button:hover,
.create-account-form-btn:hover{
    background-color: var(--secondary-red);
    color: var(--white);
}

.forgotten{
    color: var(--white);
    margin-bottom: 20px;    
}

.or-divider{
    margin-bottom: 20px;
    position: relative;
    opacity: 50%;
}

.or-divider::before{
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--white);
    border-radius: 50px;
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
}

.or-divider::after{
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--white);
    border-radius: 50px;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
}


/* LOGIN CONTAINER ANIMATION */

/* Ensure the container transitions smoothly if height changes */
.login-container {
    transition: height 0.4s ease-in-out;
    overflow: hidden;
    min-height: 400px; /* Adjust based on your preferred look */
}

/* Base style for form sections */
.auth-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This handles the fade speed */
    transition: opacity 0.4s ease-in-out; 
}

.success-message {
    background: #218b3ac4;
    color: var(--white);
    padding: 10px 20px;
    margin: 5px 0;
    margin-bottom: 15px;
    border-radius: 50px;
}

.fail-message {
    background: var(--secondary-red);
    color: var(--white);
    padding: 10px 20px;
    margin: 5px 0;
    margin-bottom: 15px;
    border-radius: 50px;
}

/* FORM VALIDATION */

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding-right: 40px;
}

.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}

.validation-icon img {
    width: 20px;
    height: 20px;
}