/* ---------------------------------------------------------------------------
   Barangay Rosario — staff login
   Palette sampled from pasigcity.gov.ph: #003067 navy, #118df0 accent.

   The photo is optional. If assets/images/brand/login-bg.jpg is absent the
   navy gradient underneath still renders a finished-looking page, so a
   missing asset degrades instead of showing a broken white screen.
--------------------------------------------------------------------------- */

:root {
    --pasig-navy: #003067;
    --pasig-navy-dark: #012044;
    --pasig-blue: #118df0;
}

html, body {
    height: 100%;
}

body.barangay-login {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--pasig-navy-dark);
    background-image:
        linear-gradient(180deg, rgba(0, 48, 103, 0.82) 0%, rgba(1, 32, 68, 0.94) 100%),
        url("../images/brand/login-bg.jpg");
    background-size: cover, cover;
    /* Anchored bottom-centre so the building stays in frame as height changes. */
    background-position: center bottom, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

/* Centre the card both axes, with breathing room on short screens. */
.barangay-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.barangay-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.barangay-login-card .card-head {
    text-align: center;
    padding: 32px 30px 18px;
}

.barangay-login-card .card-head img {
    max-width: 160px;
    height: auto;
    margin-bottom: 16px;
}

/* Shown only when no logo file is configured. */
.barangay-login-card .brand-fallback {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--pasig-navy);
    border: 3px solid var(--pasig-navy);
    border-radius: 8px;
    padding: 6px 16px;
    margin-bottom: 16px;
}

/* The card title is the page's h1 — the sign-in card is the whole
   page, so its name is the heading. Sized here, not by the tag. */
.barangay-login-card h1,
.barangay-login-card h3 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    color: var(--pasig-navy);
}

.barangay-login-card .subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.barangay-login-card .card-body {
    padding: 8px 30px 30px;
}

.barangay-login-card .form-group {
    margin-bottom: 16px;
}

.barangay-login-card label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.barangay-login-card .form-control {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
}

.barangay-login-card .form-control:focus {
    border-color: var(--pasig-blue);
    box-shadow: 0 0 0 3px rgba(17, 141, 240, 0.18);
}

.barangay-login-card .btn-login {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--pasig-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .15s ease-in-out;
}

.barangay-login-card .btn-login:hover,
.barangay-login-card .btn-login:focus {
    background: #00417f;
    color: #fff;
}

.barangay-login-card .alert {
    font-size: 13px;
    border-radius: 6px;
}

.barangay-login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.barangay-login-footer a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .barangay-login-card .card-head { padding: 24px 20px 14px; }
    .barangay-login-card .card-body { padding: 8px 20px 24px; }
}

/* The "are you a resident?" way out. Quiet, but not fine print — someone who
   arrived at the wrong door is already confused and should not have to hunt. */
.barangay-login-card .signpost {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    text-align: center;
    font-size: 13.5px;
    color: #5a6a80;
}
.barangay-login-card .signpost a {
    color: #14315c;
    font-weight: 600;
    text-decoration: underline;
}
