/* Login Section */

.login-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(
        to bottom,
        var(--white) 50%,
        var(--primary) 50%
    );
    overflow: hidden;
}

.login-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url("./assets/signup-background.avif") bottom center / cover no-repeat;
    z-index: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.login-content {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.login-content h1 {
    font-family: var(--headings);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--dark);
}

.login-content p {
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--dark);
}

.form-group input {
    padding: .9rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--body);
    transition: .3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(116, 26, 50, 0.12);
}

#login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    margin-inline: auto;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 999px;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

#login-btn:hover {
    background: transparent;
    color: var(--primary);
}

.forgot-password-link {
    display: block;
    margin-top: 8px;
    text-align: right;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #DC2626;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 20px;
}

.login-text {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    text-align: center;
    color: var(--text);
}

.login-btn {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: .3s ease;
}

.login-btn:hover {
    color: var(--primary-dark);
}

/* 
   TABLET
   769px - 1024px
 */

@media (min-width: 769px) and (max-width: 1024px) {

    .login-section {
        min-height: 100vh;
    }

    .login-container {
        min-height: 100vh;

        padding: 3rem 2rem;
    }

    .login-content {
        width: 100%;
        max-width: 450px;

        padding: 2.75rem;

        border-radius: 22px;
    }

    .login-content h1 {
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .login-content p {
        margin-bottom: 1.75rem;

        line-height: 1.6;
    }

    .form-group {
        margin-bottom: 1.4rem;
    }

    .form-group input {
        padding: 0.9rem 1rem;

        font-size: 1rem;
    }

    .form-group input:focus {
        border-color: var(--primary);

        box-shadow:
            0 0 0 4px rgba(116, 26, 50, 0.12);
    }

}


/* 
   MOBILE
   768px AND BELOW
 */

@media (max-width: 768px) {

    .login-section {
        min-height: 100dvh;

        background: linear-gradient(
            to bottom,
            var(--white) 42%,
            var(--primary) 42%
        );
    }

    .login-section::after {
        height: 42%;

        background-position: bottom center;
    }

    .login-container {
        min-height: 100dvh;

        padding: 60px 20px;
    }

    .login-content {
        width: 100%;
        max-width: 430px;

        padding: 35px 25px;

        border-radius: 20px;
    }

    .login-content h1 {
        font-size: 2rem;
        line-height: 1.15;

        margin-bottom: 10px;
    }

    .login-content p {
        margin-bottom: 1.75rem;

        font-size: 0.95rem;
        line-height: 1.6;
    }


    /* FORM */

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        margin-bottom: 0.5rem;

        font-size: 0.95rem;
    }

    .form-group input {
        width: 100%;

        padding: 14px 15px;

        font-size: 16px;
    }

    .form-group input:focus {
        border-color: var(--primary);

        box-shadow:
            0 0 0 4px rgba(116, 26, 50, 0.12);
    }


    /* ERROR */

    .error-message {
        margin-bottom: 1rem;

        font-size: 0.9rem;
        line-height: 1.5;
    }


    /* LOGIN / SIGNUP LINKS */

    .login-text {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;

        font-size: 0.95rem;
        line-height: 1.5;
    }

    .login-btn {
        font-size: 0.95rem;
    }

}


/* 
   SMALL MOBILE
   480px AND BELOW
 */

@media (max-width: 480px) {

    .login-container {
        padding: 45px 15px;
    }

    .login-content {
        padding: 30px 20px;

        border-radius: 18px;
    }

    .login-content h1 {
        font-size: 1.8rem;
    }

    .login-content p {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 13px 14px;
    }

}