/* =========================================================
   Login Page – Custom Stylesheet
   Matches the reference design: white form panel (left) + 
   immersive photo/brand panel (right).
   Bootstrap 5 is the primary layout engine; this file fills
   the gaps Bootstrap cannot cover alone.
   ========================================================= */



/* ---------- Global reset for this page ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: var(--lp-text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   LAYOUT – two equal columns filling the viewport
   ========================================================= */
.lp-wrapper {
    display: flex;
    height: 100vh;
    min-height: 600px;
}

/* ---------- LEFT – form column ---------- */
.lp-form-col {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 48px 40px;
    background: #fff;
    overflow-y: auto;
    justify-content: space-around;
}

.lp-form-inner {
    width: 100%;
    max-width: 420px;
    padding-top: 20px;
}

/* ---------- RIGHT – brand / photo column ---------- */
.lp-brand-col {
    width: 50%;
    background-color: #0d2b2a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background image set inline via blade (style attribute) */

/* =========================================================
   FORM COLUMN – content
   ========================================================= */

/* Heading */
.lp-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lp-text-main);
    margin-bottom: 6px;
    line-height: 1.2;
}

.lp-subheading {
    font-size: 0.875rem;
    color: var(--lp-text-muted);
    margin-bottom: 32px;
}

/* Labels */
.lp-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lp-text-main);
    margin-bottom: 6px;
}

/* Input group wrapper */
.lp-input-group {
    margin-bottom: 18px;
}

.lp-input-wrapper {
    position: relative;
}

/* Icon prefix */
.lp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bac8;
    font-size: 14px;
    pointer-events: none;
    z-index: 3;
}

/* Eye toggle */
.lp-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bac8;
    cursor: pointer;
    font-size: 14px;
    z-index: 3;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.lp-pw-toggle:hover {
    color: var(--lp-primary);
}

/* Form controls */
.lp-input {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 40px;
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-radius);
    font-size: 0.875rem;
    color: var(--lp-text-main);
    background: var(--lp-bg-input);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.lp-input::placeholder {
    color: #c2c9d6;
}

.lp-input:focus {
    border-color: var(--lp-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 201, 162, 0.12);
}

/* School Code row – label + what's this link */
.lp-school-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.lp-whats-this {
    font-size: 0.75rem;
    color: var(--lp-primary);
    text-decoration: none;
    cursor: pointer;
}

.lp-whats-this:hover {
    text-decoration: underline;
}

/* Forgot password */
.lp-forgot {
    text-align: right;
    margin-bottom: 20px;
}

.lp-forgot a {
    font-size: 0.8125rem;
    color: var(--lp-primary);
    text-decoration: none;
    font-weight: 500;
}

.lp-forgot a:hover {
    text-decoration: underline;
}

/* Sign In button */
.lp-btn-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: var(--lp-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--lp-shadow-btn);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.lp-btn-signin:hover {
    background: var(--theme-color);
    transform: translateY(-1px);
    cursor: pointer;
}

.lp-btn-signin:active {
    transform: translateY(0);
}

/* Signup link below button */
.lp-signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
}

.lp-signup-link a {
    color: var(--lp-primary);
    font-weight: 600;
    text-decoration: none;
}

.lp-signup-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.lp-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    margin-bottom: 18px;
}

.lp-alert-success {
    background: #e6faf5;
    border: 1px solid #a3e9d5;
    color: #0a6644;
}

.lp-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* =========================================================
   DEMO CREDENTIALS SECTION
   ========================================================= */
.lp-demo-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    color: #aab0bc;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lp-demo-divider::before,
.lp-demo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lp-border);
}

.lp-demo-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa0ad;
    font-weight: 600;
    margin-bottom: 8px;
}

.lp-demo-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lp-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

/* Super Admin – teal outline */
.lp-demo-btn-teal {
    border-color: var(--lp-primary);
    color: #0b8c6e;
}

.lp-demo-btn-teal:hover {
    background: rgba(23, 201, 162, 0.08);
}

/* Staff Global – indigo outline */
.lp-demo-btn-indigo {
    border-color: #8b80f8;
    color: #5c52d3;
}

.lp-demo-btn-indigo:hover {
    background: rgba(139, 128, 248, 0.08);
}

/* School Admin – light teal */
.lp-demo-btn-admin {
    border-color: #82e0cc;
    color: #0b8c6e;
}

.lp-demo-btn-admin:hover {
    background: rgba(130, 224, 204, 0.12);
}

/* Teacher – red/coral outline */
.lp-demo-btn-teacher {
    border-color: #f87171;
    color: #b91c1c;
}

.lp-demo-btn-teacher:hover {
    background: rgba(248, 113, 113, 0.08);
}

/* Staff – blue outline */
.lp-demo-btn-staff {
    border-color: #60a5fa;
    color: #1d4ed8;
}

.lp-demo-btn-staff:hover {
    background: rgba(96, 165, 250, 0.08);
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet (≤ 991px) – stack vertically, form below brand */
@media (max-width: 991.98px) {
    .lp-wrapper {
        flex-direction: column;
        height: auto;
    }

    .lp-form-col,
    .lp-brand-col {
        width: 100%;
    }

    .lp-brand-col {
        min-height: 280px;
    }

    .lp-form-col {
        padding: 36px 24px;
        align-items: flex-start;
    }
}

/* Mobile (≤ 575px) */
@media (max-width: 575.98px) {
    .lp-brand-col {
        min-height: 220px;
    }

    .lp-form-col {
        padding: 28px 16px;
    }

    .lp-form-inner {
        max-width: 100%;
        padding-top: 0;
    }

    .lp-heading {
        font-size: 1.6rem;
    }

    .lp-demo-btns {
        gap: 6px;
    }

    .lp-demo-btn {
        padding: 5px 12px;
        font-size: 0.73rem;
    }
}

/* Landscape mobile – override to side-by-side layout */
@media (max-height: 560px) and (orientation: landscape) {
    .lp-wrapper {
        flex-direction: row;
        height: 100vh;
    }

    .lp-form-col,
    .lp-brand-col {
        width: 50%;
        height: 100%;
    }

    .lp-brand-col {
        min-height: auto;
    }
}

.btn-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}
/* =========================================================
   SEMS brand / photo panel
   ========================================================= */
.lp-brand-col { position: relative; --lp-brand: #14213d; }
.lp-brand-col--photo { background-size: cover; background-position: center; }
.lp-brand-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px; color: #fff;
    background: linear-gradient(180deg, rgba(10,18,36,.55) 0%, rgba(10,18,36,.25) 35%, rgba(10,18,36,.85) 100%);
}
.lp-brand-col:not(.lp-brand-col--photo) .lp-brand-overlay {
    background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.08), transparent 60%), var(--lp-brand);
}
.lp-brand-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lp-brand-id { display: flex; align-items: center; gap: 14px; color: #fff !important; text-decoration: none !important; }
.lp-brand-id img { height: 64px; width: auto; max-width: 160px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.lp-brand-id strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.lp-brand-id small { display: block; font-size: .82rem; opacity: .85; font-style: italic; margin-top: 3px; }
.lp-brand-back { color: #fff !important; font-size: .82rem; text-decoration: none !important; opacity: .85; white-space: nowrap; padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.lp-brand-back:hover { opacity: 1; background: rgba(255,255,255,.12); }
.lp-brand-bottom h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.25; max-width: 520px; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.lp-brand-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.lp-brand-points li { font-size: .95rem; opacity: .95; }
.lp-brand-points i { color: #f2b632; margin-right: 8px; }
.lp-brand-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); font-size: .88rem; }
.lp-brand-contact > a { color: #fff !important; text-decoration: none !important; opacity: .9; }
.lp-brand-contact > a i { margin-right: 6px; color: #f2b632; }
.lp-brand-social { display: inline-flex; gap: 8px; margin-left: auto; }
.lp-brand-social a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff !important; text-decoration: none !important; }
.lp-brand-social a:hover { background: #f2b632; color: #14213d !important; }
.lp-form-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--lp-text-main) !important; text-decoration: none !important; font-weight: 700; }
.lp-form-logo img { height: 44px; width: auto; }
@media (max-width: 991.98px) {
    .lp-brand-col { min-height: 340px; order: -1; }
    .lp-brand-overlay { padding: 24px; }
    .lp-brand-points, .lp-form-logo span { display: none; }
    .lp-brand-bottom h2 { font-size: 1.3rem; margin-bottom: 12px; }
}
@media (min-width: 992px) {
    .lp-brand-col { order: -1; }
}
