/* ================================================================
   LOGIN PAGE — LGU-ARMS  (Municipality of Bay)
   Institutional, government-grade sign-in.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.lp-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: #0a1f45;
    min-height: 100vh;
    color: #0f172a;
}

/* Official tricolor accent bar across the very top. */
.lp-topbar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg,
        #0038a8 0 42%,     /* flag blue  */
        #fcd116 42% 58%,   /* flag gold  */
        #ce1126 58% 100%); /* flag red   */
    position: sticky;
    top: 0;
    z-index: 10;
}

.lp-root {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 4px);
}

/* ════════════════════════════════════════════════════════════════
   LEFT — Brand panel
   ════════════════════════════════════════════════════════════════ */
.lp-brand {
    width: 44%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(165deg, #0a2350 0%, #0b2f6b 52%, #0a2350 100%);
    display: flex;
    flex-direction: column;
}

/* Soft directional light — replaces the decorative circles. */
.lp-brand-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 45% at 82% 8%, rgba(59,130,246,0.28), transparent 60%),
        radial-gradient(50% 40% at 0% 100%, rgba(8,20,45,0.55), transparent 55%);
    pointer-events: none;
}

.lp-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    padding: 46px 52px;
}

/* ── Identity block ────────────────────────────────────────────── */
/* margin-top:auto (with the disclaimer's) centres the identity in the panel */
.lp-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: auto 0 0;
}

.lp-seal { margin-bottom: 26px; }

/* Name, tagline and municipality stay one block, so on narrow screens they sit
   together beside the seal instead of splitting into separate columns. */
.lp-identity-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.lp-seal-outer {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15);
    position: relative;
}
.lp-seal-outer::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
}
.lp-seal-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The logo PNG has a transparent margin around the emblem (it fills ~78% of
   the image), so it is zoomed slightly to fill the circle; the circle clips
   only empty space. */
.lp-seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transform: scale(1.15);
    display: block;
}

.lp-brand-name {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 10px;
}

.lp-brand-system {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    max-width: 320px;
}

.lp-brand-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
}
.lp-brand-location i { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── Bottom disclaimer ─────────────────────────────────────────── */
.lp-brand-disclaimer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    max-width: 400px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.lp-brand-disclaimer i { font-size: 12px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.35); }

/* ════════════════════════════════════════════════════════════════
   RIGHT — Form panel
   ════════════════════════════════════════════════════════════════ */
.lp-form-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px 88px;
    position: relative;
}

.lp-form-wrap {
    width: 100%;
    max-width: 396px;
}

/* ── Header ────────────────────────────────────────────────────── */
.lp-form-hd { margin-bottom: 30px; }

.lp-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #0b3d91;
    margin-bottom: 16px;
    padding: 5px 11px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    border-radius: 6px;
}
.lp-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #0b3d91; flex-shrink: 0; }

.lp-form-title {
    font-size: 30px;
    font-weight: 800;
    color: #0b1b3a;
    letter-spacing: -0.6px;
    line-height: 1.12;
    margin-bottom: 8px;
}

.lp-form-sub {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* ── Alert ─────────────────────────────────────────────────────── */
.lp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 22px;
    border: 1px solid transparent;
}
.lp-alert i { font-size: 15px; flex-shrink: 0; }
.lp-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lp-alert--info  { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ── Fields ────────────────────────────────────────────────────── */
.lp-form { display: flex; flex-direction: column; }
.lp-field { margin-bottom: 18px; }

.lp-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.lp-input-wrap { position: relative; display: flex; align-items: center; }

.lp-input-ico {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.18s ease;
}

.lp-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}
.lp-input::placeholder { color: #b6bfcc; font-size: 13.5px; }
.lp-input:focus {
    border-color: #0b3d91;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}
.lp-input-wrap:focus-within .lp-input-ico { color: #0b3d91; }
.lp-input--has-action { padding-right: 46px; }

.lp-eye-btn {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    padding: 0;
}
.lp-eye-btn:hover { color: #334155; background: #f1f5f9; }

/* ── Options ───────────────────────────────────────────────────── */
.lp-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 26px;
}

.lp-check-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #475569;
}
.lp-check-native { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.lp-check-box {
    width: 18px; height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.lp-check-mark { font-size: 9px; color: #fff; display: none; }
.lp-check-native:checked ~ .lp-check-box { background: #0b3d91; border-color: #0b3d91; }
.lp-check-native:checked ~ .lp-check-box .lp-check-mark { display: block; }
.lp-check-native:focus-visible ~ .lp-check-box { box-shadow: 0 0 0 3px rgba(11,61,145,0.15); }

.lp-forgot {
    font-size: 13px;
    font-weight: 600;
    color: #0b3d91;
    cursor: pointer;
    transition: color 0.15s;
}
.lp-forgot:hover { color: #1d4ed8; text-decoration: underline; }

/* ── Submit ────────────────────────────────────────────────────── */
.lp-submit {
    width: 100%;
    height: 50px;
    background: #0b3d91;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.05s ease;
    box-shadow: 0 6px 18px rgba(11, 61, 145, 0.25);
}
.lp-submit:hover:not(:disabled) { background: #0a3480; box-shadow: 0 8px 22px rgba(11, 61, 145, 0.32); }
.lp-submit:active:not(:disabled) { transform: translateY(1px); }
.lp-submit:disabled { opacity: 0.75; cursor: not-allowed; }
.lp-submit-arrow { font-size: 13px; transition: transform 0.18s ease; }
.lp-submit:hover:not(:disabled) .lp-submit-arrow { transform: translateX(3px); }

/* ── Register link ─────────────────────────────────────────────── */
.lp-links {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}
.lp-link {
    color: #0b3d91;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s;
}
.lp-link:hover { color: #1d4ed8; text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────────── */
.lp-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11.5px;
    color: #a3adba;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}
.lp-footer-sep { opacity: 0.5; }
.lp-footer-link {
    color: #7b8794;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.lp-footer-link:hover { color: var(--primary-color, #003d7a); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .lp-root { flex-direction: column; min-height: 0; }
    .lp-brand { width: 100%; }
    .lp-brand-inner {
        padding: 30px 28px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 18px 22px;
    }
    .lp-identity { flex-direction: row; align-items: center; gap: 20px; margin: 0; flex: 1; min-width: 260px; }
    .lp-seal { margin-bottom: 0; }
    .lp-seal-outer { width: 100px; height: 100px; }
    .lp-brand-name { font-size: 26px; margin-bottom: 6px; }
    .lp-brand-system { font-size: 13px; }
    .lp-brand-location { font-size: 12.5px; margin-top: 6px; }
    .lp-brand-disclaimer { width: 100%; margin-top: 4px; padding-top: 16px; }
    .lp-form-panel { padding: 40px 28px 84px; justify-content: flex-start; }
    .lp-form-wrap { max-width: 460px; margin: 0 auto; }
    .lp-footer { padding: 14px 28px; }
}

@media (max-width: 480px) {
    .lp-brand-inner { padding: 22px 20px; }
    .lp-identity { flex-direction: column; align-items: flex-start; gap: 14px; }
    .lp-brand-name { font-size: 23px; }
    .lp-form-panel { padding: 30px 20px 76px; }
    .lp-form-title { font-size: 25px; }
    .lp-footer { padding: 12px 20px; flex-wrap: wrap; gap: 4px; }
}
