/* login.css — public faculty directory + staff login landing */
* { box-sizing: border-box; }
:root {
    --navy: #1a2d4a;
    --navy-2: #28406a;
    --accent: #2563eb;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f1f5f9;
}
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

/* ── Top bar ─────────────────────────────────────────────── */
.lp-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px; background: var(--navy); color: #fff;
    position: sticky; top: 0; z-index: 30;
}
.lp-brand { display: flex; align-items: center; gap: 12px; }
.lp-mark { font-size: 1.5rem; }
.lp-brand-text { font-weight: 700; font-size: 1.05rem; line-height: 1.1; display: flex; flex-direction: column; }
.lp-brand-sub { font-weight: 400; font-size: .72rem; letter-spacing: .5px; opacity: .7; text-transform: uppercase; }
.lp-staff-btn {
    background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
    padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: .88rem; cursor: pointer;
    transition: background .15s;
}
.lp-staff-btn:hover { background: rgba(255,255,255,.22); }

/* ── Hero ────────────────────────────────────────────────── */
.lp-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; text-align: center; padding: 54px 20px 64px;
}
.lp-hero h1 { margin: 0 0 8px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px; }
.lp-hero-sub { margin: 0 auto 26px; max-width: 620px; font-size: 1rem; opacity: .85; line-height: 1.5; }
.lp-search {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    max-width: 720px; margin: 0 auto;
}
.lp-search-input {
    flex: 1 1 360px; min-width: 240px; padding: 14px 18px; border: none; border-radius: 10px;
    font-size: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); outline: none;
}
.lp-college-select {
    flex: 0 0 auto; padding: 14px 16px; border: none; border-radius: 10px; font-size: .95rem;
    background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.lp-count { margin-top: 16px; font-size: .85rem; opacity: .8; }

/* ── Directory grid ──────────────────────────────────────── */
.lp-grid {
    max-width: 1180px; margin: -34px auto 40px; padding: 0 20px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.lp-card {
    display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .12s, box-shadow .12s, border-color .12s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,45,74,.16); border-color: #c7d2fe; }
.lp-avatar {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center;
}
.lp-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lp-card-name { font-weight: 700; color: var(--navy); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-card-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-card-papers { font-size: .76rem; color: var(--accent); font-weight: 600; margin-top: 5px; }
.lp-card-arrow { color: #cbd5e1; font-size: 1.2rem; transition: transform .12s, color .12s; }
.lp-card:hover .lp-card-arrow { color: var(--accent); transform: translateX(3px); }
.lp-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

.lp-footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px; }

/* ── Staff login slide-in panel ──────────────────────────── */
.lp-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.5); opacity: 0; visibility: hidden;
    transition: opacity .2s; z-index: 40;
}
.lp-overlay.open { opacity: 1; visibility: visible; }
.lp-login-panel {
    position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 90vw;
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.2); z-index: 50;
    transform: translateX(100%); transition: transform .25s ease; padding: 28px 26px;
}
.lp-login-panel.open { transform: translateX(0); }
.lp-login-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.lp-login-panel h2 { margin: 6px 0 4px; color: var(--navy); font-size: 1.3rem; }
.lp-login-note { color: var(--muted); font-size: .85rem; margin: 0 0 18px; }
.lp-login-error { background: #fee2e2; color: #b91c1c; padding: 9px 12px; border-radius: 8px; font-size: .85rem; margin-bottom: 14px; }
.lp-login-form label { display: block; font-weight: 600; font-size: .82rem; color: var(--navy); margin: 12px 0 5px; }
.lp-login-form input {
    width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: .95rem; outline: none;
}
.lp-login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.lp-login-submit {
    width: 100%; margin-top: 20px; padding: 12px; background: var(--navy); color: #fff; border: none;
    border-radius: 9px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s;
}
.lp-login-submit:hover { background: var(--navy-2); }

@media (max-width: 560px) {
    .lp-hero h1 { font-size: 1.6rem; }
    .lp-grid { margin-top: -20px; }
}
