/* =========================================
   SUN CHURCH — STAFF LOGIN PAGE
========================================= */

/* Login container */

.login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(218, 113, 47, 0.12),
            transparent 35%
        ),
        linear-gradient(135deg, #0551dc, #6b95f1 55%, #a16491);
}

/* Login card */

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 42px 36px;
    background: #ffe4ee;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

/* Church name and portal heading */

.login-card h1 {
    margin: 0;
    color: #172641;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: center;
}

.login-card > p {
    margin: 8px 0 32px;
    color: #8b3b4b;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0 0 26px;
    color: #26334a;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

/* Form fields */

#login-form .form-group {
    margin-bottom: 20px;
}

#login-form label {
    display: block;
    margin-bottom: 8px;
    color: #26334a;
    font-size: 0.92rem;
    font-weight: 600;
}

#login-form input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: #172641;
    background: #ffffff;
    border: 1px solid #d7d6d0;
    border-radius: 8px;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#login-form input::placeholder {
    color: #9298a3;
}

#login-form input:focus {
    outline: none;
    border-color: #bd6b32;
    box-shadow: 0 0 0 3px rgba(189, 107, 50, 0.15);
}

/* Login button */

#login-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    padding: 13px 18px;
    color: #ffffff;
    background: #172641;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#login-submit:hover {
    background: #8b3b4b;
    box-shadow: 0 6px 18px rgba(139, 59, 75, 0.2);
}

#login-submit:active {
    transform: translateY(1px);
}

#login-submit:focus-visible {
    outline: 3px solid #bd6b32;
    outline-offset: 3px;
}

#login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Login feedback messages */

#login-message {
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#login-message:empty {
    display: none;
}

#login-message.error {
    padding: 11px 12px;
    color: #842c38;
    background: #fbeaec;
    border: 1px solid #edc4ca;
    border-radius: 7px;
}

#login-message.success {
    padding: 11px 12px;
    color: #216443;
    background: #e8f5ed;
    border: 1px solid #b9dfc7;
    border-radius: 7px;
}

/* Back to Home navigation */


/* Back to Home navigation */

.back-home {
    position: absolute;
    top: 24px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fffaf0;
    background: var(--navy);
    border: 1px solid rgba(255, 250, 240, 0.35);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.back-home:hover {
    background: var(--wine);
}

.back-home:focus-visible {
    outline: 3px solid #bd6b32;
    outline-offset: 3px;
}

/* Small screens */

@media (max-width: 480px) {
    .login-container {
        padding: 20px 14px;
    }

    .login-card {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .login-card h1 {
        font-size: 1.75rem;
    }

    .login-card h2 {
        font-size: 1.2rem;
    }

    .back-home {
        top: 14px;
        right: 14px;
        padding: 8px 11px;
        font-size: 0.82rem;
    }

    .login-container {
        padding-top: 76px;
    }
}

/* Reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
    #login-form input,
    #login-submit {
        transition: none;
    }
}
