/* Payroll login — SMC HR Login design (scoped under .lp-page) */
html, body.lp-page { margin: 0; padding: 0; background: #f3f5f1; }
.lp-page, .lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page a { color: #2d6a35; text-decoration: none; }
.lp-page a:hover { color: #1f4f26; text-decoration: underline; }
.lp-page input::placeholder { color: #9aa49d; }

.lp-shell {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Public Sans', system-ui, sans-serif;
    color: #17211b;
    background: #f3f5f1;
}

/* ---------- brand panel ---------- */
.lp-brand {
    position: relative;
    flex: 1.3 1 560px;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background: #0e2a1a var(--lp-photo) center 45% / cover no-repeat;
}
.lp-brand-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 44, 26, .55) 0%, rgba(12, 44, 26, .12) 42%, rgba(12, 44, 26, .25) 62%, rgba(8, 30, 18, .92) 100%);
}
.lp-brand-inner {
    position: relative;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 56px;
    padding: 48px clamp(28px, 5vw, 64px);
}
.lp-id { display: flex; align-items: center; gap: 18px; }
.lp-logo {
    width: 80px;
    height: 80px;
    flex: none;
    border-radius: 18px;
    /*background: #fff;*/
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
}
.lp-logo img { width: 100px; height: 100px; border-radius: 14px; display: block; }
.lp-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-org { font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.lp-org-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 17px;
    line-height: 1.9;
    color: #e7f1e5;
    text-align: left;
}
.lp-gov {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b9d8b6;
}

.lp-copy { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.lp-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #cfe6cc;
}
.lp-dot { width: 4px; height: 4px; border-radius: 50%; background: #8fc48b; }
.lp-headline {
    margin: 0;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.lp-sub {
    margin: 0;
    max-width: 46ch;
    font-size: 18px;
    line-height: 1.6;
    color: #eef5ec;
    text-wrap: pretty;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.lp-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.lp-meta > div { display: flex; flex-direction: column; gap: 6px; }
.lp-meta > div:last-child { justify-content: flex-end; }
.lp-meta-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b9d8b6;
}
.lp-clock {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.lp-date { font-size: 14px; color: #dbe8d8; }
.lp-place { font-size: 14px; color: #e4eee2; }
.lp-coords { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; color: #b9d8b6; }

/* ---------- sign-in panel ---------- */
.lp-form-pane {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 48px 24px 32px;
}
.lp-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 36px;
    background: #fff;
    border: 1px solid #e1e6e0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(20, 40, 25, .04), 0 18px 40px -18px rgba(20, 40, 25, .18);
}
.lp-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.lp-head { display: flex; flex-direction: column; gap: 6px; }
.lp-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.lp-head p { margin: 0; font-size: 15px; color: #5b665f; }

.lp-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.lp-banner svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lp-banner span { flex: 1; }
.lp-banner.ok { align-items: center; background: #eef6ee; border: 1px solid #cfe5cf; color: #24572b; }
.lp-banner.ok svg { margin-top: 0; }
.lp-banner.err { background: #fdf1ef; border: 1px solid #f0cbc3; color: #962f1e; animation: smc-rise .25s ease-out; }

.lp-group { display: flex; flex-direction: column; gap: 6px; }
.lp-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: text;
    border: 1px solid #d6ddd5;
    background: #f7f9f6;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lp-field.has-toggle { padding-right: 8px; }
.lp-field:focus-within { border-color: #2d6a35; background: #fff; box-shadow: 0 0 0 4px rgba(45, 106, 53, .14); }
.lp-field.invalid { border-color: #d98b7c; box-shadow: 0 0 0 3px rgba(217, 139, 124, .15); }
.lp-field.invalid:focus-within { border-color: #2d6a35; box-shadow: 0 0 0 4px rgba(45, 106, 53, .14); }
.lp-field > svg { flex: none; width: 20px; height: 20px; }
.lp-field-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lp-caption { font-size: 12px; font-weight: 500; color: #5b665f; }
.lp-input {
    width: 100%;
    padding: 3px 0 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #17211b;
}
.lp-toggle {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b665f;
    cursor: pointer;
}
.lp-toggle:hover { background: #eef1ed; color: #17211b; }
.lp-toggle .lp-eye-off { display: none; }
.lp-toggle[aria-pressed="true"] .lp-eye { display: none; }
.lp-toggle[aria-pressed="true"] .lp-eye-off { display: block; }
.lp-toggle svg { width: 20px; height: 20px; }

.lp-err { padding-left: 2px; font-size: 13px; color: #962f1e; }
.lp-err[hidden], .lp-caps[hidden] { display: none; }
.lp-caps { display: flex; align-items: center; gap: 6px; padding-left: 2px; font-size: 13px; color: #8a5a00; }
.lp-caps svg { width: 14px; height: 14px; }

.lp-submit {
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: #2d6a35;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .005em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 18px -10px rgba(45, 106, 53, .8);
    transition: background .15s, transform .1s;
}
.lp-submit:hover { background: #24572b; }
.lp-submit:active { transform: translateY(1px); }
.lp-submit:focus-visible, .lp-toggle:focus-visible { outline: 3px solid rgba(45, 106, 53, .4); outline-offset: 2px; }
.lp-submit.loading, .lp-submit[disabled] { pointer-events: none; cursor: progress; background: #2d6a35; transform: none; }
.lp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: smc-spin .7s linear infinite;
}
.lp-submit.loading .lp-spinner { display: block; }

.lp-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: #5b665f; }
.lp-foot-by { display: flex; align-items: center; gap: 8px; }
.lp-foot-by svg { height: 30px; width: auto; display: block; mix-blend-mode: multiply; }
.lp-foot-by a:hover { text-decoration: none; }

@keyframes smc-spin { to { transform: rotate(360deg); } }
@keyframes smc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .lp-banner.err { animation: none; }
}
