/* =========================================
       LOGIN PAGE
    ========================================= */

.login-page {
    min-height: 100vh;
    background-color: #f9fafb;
}

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

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 2rem 1.5rem;
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    width: 100%;
    max-width: 28rem;

    background-color: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;

    box-shadow:
            0 10px 15px -3px rgba(0, 0, 0, 0.1),
            0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.login-content {
    padding: 2rem;
}


/* =========================================
   TITLE / LOGO
========================================= */

.login-title {
    margin: 0 0 1.5rem;

    color: #111827;

    font-size: 1.5rem;
    font-weight: 700;

    line-height: 1.25;
    letter-spacing: -0.025em;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    text-align: center;
}

/* Smaller Oreta logo */
.login-title img {
    width: 120px;
    height: auto;
    display: block;
}


/* =========================================
   FORM
========================================= */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

    color: #111827;

    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 0.625rem 0.75rem;

    background-color: #f9fafb;

    border: 1px solid #d1d5db;
    border-radius: 0.5rem;

    color: #111827;

    font-size: 0.875rem;

    outline: none;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: #eab308;

    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}


/* =========================================
   TURNSTILE
========================================= */

.turnstile-container {
    width: 100%;
}


/* =========================================
   REMEMBER / FORGOT PASSWORD
========================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me {
    display: flex;
    align-items: center;

    gap: 0.75rem;
}

.remember-me input {
    width: 1rem;
    height: 1rem;

    accent-color: #eab308;

    cursor: pointer;
}

.remember-me label {
    color: #6b7280;

    font-size: 0.875rem;

    cursor: pointer;
}

.forgot-password {
    color: #ca8a04;

    font-size: 0.875rem;
    font-weight: 500;

    text-decoration: none;
}

.forgot-password:hover {
    color: #a16207;
    text-decoration: underline;
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
    width: 100%;

    padding: 0.625rem 1.25rem;

    border: none;
    border-radius: 0.5rem;

    /* Yellow */
    background-color: #facc15;

    /* Dark text for contrast */
    color: #111827;

    font-size: 0.875rem;
    font-weight: 600;

    text-align: center;

    cursor: pointer;

    transition:
            background-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.1s ease;
}

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

.login-button:active {
    transform: translateY(1px);
}

.login-button:focus {
    outline: none;

    box-shadow:
            0 0 0 4px rgba(234, 179, 8, 0.25);
}

/* Disabled button while Turnstile hasn't passed */
.login-button:disabled {
    background-color: #fde68a;
    color: #6b7280;

    cursor: not-allowed;

    box-shadow: none;
    transform: none;
}


/* =========================================
   FLASH MESSAGES
========================================= */

.flash {
    margin-bottom: 1rem;
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 480px) {

    .login-container {
        padding: 1rem;
    }

    .login-content {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .login-title img {
        width: 100px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
/* =========================================
   LOGIN ERROR BANNER
   ========================================= */

.login-error {
    display: flex !important;
    align-items: flex-start;
    gap: 0.625rem;

    width: 100%;
    box-sizing: border-box;

    margin: -0.5rem -0.5rem 1.5rem;
    padding: 0.875rem 1rem;

    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 0.5rem;

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

.login-error,
.login-error * {
    color: #991b1b !important;
}

.login-error::before {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.25rem;
    height: 1.25rem;

    font-size: 1rem;
    line-height: 1;
}
