/* auth.css */

/* === General Layout === */
body {
    background: url('/static/images/login_background.jpeg') no-repeat center center fixed;
    background-size: cover;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Auth Wrapper - Centers the login form and errors === */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* === Login/Reset Form Container === */
.login-container {
    background: white;
    /* 👈 white background for contrast */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
    min-width: 400px;
}

/* === Logo Styling === */
.login-container img {
    display: block;
    max-width: 150px;
    margin: 0 auto 1.5rem;
}

/* === Inputs === */
.form-control {
    margin-bottom: 1rem;
}

/* === Button === */
.btn {
    width: 100%;
}

/* === reCAPTCHA === */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* === Error Styling === */
.auth-error-container {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    min-width: 400px;
}

.auth-error-container .alert {
    margin-bottom: 0.5rem;
    background-color: #337ab7;
    color: white;
    border: 1px solid;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 14px;
    line-height: 14px;
}

/* === Legacy Error Styling (for backward compatibility) === */
.loginErrorMessage {
    margin-top: 1rem;
    width: 100%;
}

.loginErrorMessageAlert {
    margin-bottom: 0.5rem;
    background-color: #337ab7;
    color: white;
    text-align: center;
    border-radius: 12px;
}

/* === Footer Link === */
.footer-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
        min-width: unset;
    }

    .auth-error-container {
        margin: 1rem;
        min-width: unset;
        max-width: unset;
    }
}