/* ===== Landing / sign-in pages (anonymous layout only) ===== */
:root {
    --lp-navy: #0a2f7a;
    --lp-blue: #1257d6;
    --lp-cyan: #35c3ef;
    --lp-ink: #1c2434;
    --lp-muted: #5d6779;
    --lp-line: #dde3ee;
    --lp-bg: #f4f7fc;
}

.lp-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--lp-ink);
    background: radial-gradient(1200px 500px at 15% -10%, #dce9ff 0%, transparent 60%), var(--lp-bg);
}

/* Header */
.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid var(--lp-line);
}

.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--lp-navy); font-weight: 700; font-size: 1.15rem; }
.lp-brand img { border-radius: 8px; }
.lp-brand b { color: var(--lp-cyan); }

.lp-nav { display: flex; gap: 4px; overflow-x: auto; }
.lp-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--lp-muted);
    font-weight: 500;
    font-size: .95rem;
    white-space: nowrap;
}
.lp-nav a:hover { background: #eaf1ff; color: var(--lp-blue); }
.lp-nav a.active { background: var(--lp-navy); color: #fff; }

/* Main: banner + card side by side, stacked on small screens */
.lp-main {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: center;
}

/* Single-column variant: wide forms, no banner (e.g. Staff Application) */
.lp-main--single { grid-template-columns: minmax(0, 1fr); max-width: 1100px; align-items: start; }

/* Login-only variant (CUSTOMER build): card same width as beside the banner, centred on the page */
.lp-main--login { grid-template-columns: minmax(320px, 477px); justify-content: center; }

.lp-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(10, 47, 122, .45);
}

.lp-hero-tag { margin: 14px 4px 0; color: var(--lp-muted); font-size: .95rem; }

/* Sign-in card (also reused by Forgotten / Reset password pages) */
.lp-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px -15px rgba(28, 36, 52, .25);
}

.lp-card-title { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--lp-navy); }
.lp-card-sub { color: var(--lp-muted); margin: 4px 0 20px; }

.lp-card .form-control:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 .2rem rgba(18, 87, 214, .15); }

.lp-btn {
    background: var(--lp-blue);
    border: 0;
    color: #fff;
    font-weight: 600;
    padding: 11px;
    border-radius: 10px;
}
.lp-btn:hover, .lp-btn:focus { background: var(--lp-navy); color: #fff; }

.lp-link { color: var(--lp-blue); padding: 0; font-size: .9rem; text-decoration: none; }

#loginerror:empty { display: none; }

/* Footer: in page flow, not fixed (no longer covers the form on short screens) */
.lp-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 14px 24px;
    background: #fff;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: .85rem;
}
.lp-footer a { color: var(--lp-blue); font-weight: 500; }

@media (max-width: 991px) {
    .lp-main { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
    .lp-card { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 600px) {
    .lp-header { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
    .lp-nav { width: 100%; }
    .lp-footer { flex-direction: column; padding: 12px 16px; }
}
