/* =========================================================
   LOGIN - VIDEO READY
   ========================================================= */

.login-video-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 32, 96, 0.36), rgba(0, 32, 96, 0.52)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.20), transparent 24%),
        linear-gradient(135deg, #00163f 0%, #002060 42%, #1d4ed8 100%);
}

.login-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.18)),
        url('/static/img/prcs-login-placeholder.jpg') center center / cover no-repeat;
    opacity: 0.34;
}

.login-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(0, 16, 52, 0.42) 0%,
        rgba(0, 32, 96, 0.22) 45%,
        rgba(0, 0, 0, 0.28) 100%
    );
}

.login-video-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

/* Floating card */
.login-card--floating {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 16, 52, 0.24);
    backdrop-filter: blur(12px);
}

/* Header */
.login-card__header {
    padding: 2rem 2rem 1rem;
}

.login-card__body {
    padding: 0 2rem 1.5rem;
}

.login-card__footer {
    padding: 0 2rem 1.5rem;
}

.login-card__main-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-card__eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1d4ed8;
    margin-bottom: 0.75rem;
}

.login-card__title {
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 700;
}

.login-card__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Inputs */
.login-input {
    height: 52px;
    border-radius: 16px;
    border: 1px solid #dbe3ec;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.login-input:focus {
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.08);
}

.login-password-wrap {
    position: relative;
}

.login-input--password {
    padding-right: 5rem;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.login-password-toggle:hover {
    opacity: 0.7;
}

/* Submit */
.login-submit-btn {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #d4af37, #f4d76d);
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.22);
}

.login-submit-btn:hover {
    color: #111827;
    transform: translateY(-1px);
}

.login-alert {
    border-radius: 16px;
    border: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-card__header {
        padding: 1.75rem 1.4rem 1rem;
    }

    .login-card__body,
    .login-card__footer {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .login-card--floating {
        border-radius: 22px;
    }

    .login-card__title {
        font-size: 1.45rem;
    }

    .login-card__header,
    .login-card__body,
    .login-card__footer {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .login-card__main-logo {
        width: 64px;
        height: 64px;
    }
}

/* =========================================================
   PICKUP PORTAL
   ========================================================= */

.pickup-public-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.18), transparent 28%),
        linear-gradient(135deg, #00163f, #002060 45%, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.pickup-public-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: 0 24px 60px rgba(0, 16, 52, 0.24);
}

.pickup-public-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.pickup-public-title {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 800;
}

.pickup-public-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.pickup-public-input {
    min-height: 52px;
    border-radius: 16px;
}

.pickup-public-btn {
    min-height: 52px;
    border-radius: 16px;
    border: 0;
    background: linear-gradient(135deg, #d4af37, #f4d76d);
    color: #111827;
    font-weight: 800;
}

.pickup-student-list {
    display: grid;
    gap: 0.8rem;
}

.pickup-student-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.pickup-student-photo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
}

.pickup-student-name {
    font-weight: 800;
}

.pickup-student-meta {
    font-size: 0.83rem;
    color: #64748b;
}


/* =========================================================
   EMPLOYEE ID CARD
   ========================================================= */

.employee-id-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.18), transparent 28%),
        linear-gradient(135deg, #00163f, #002060 45%, #1d4ed8);
    padding: 2rem;
}

.employee-id-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.employee-id-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.employee-id-card {
    background: rgba(255,255,255,0.96);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,16,52,0.24);
}

.employee-id-topbar {
    background: linear-gradient(135deg, #00163f, #002060);
    padding: 1.5rem 2rem;
    color: white;
}

.employee-id-school {
    font-size: 1.4rem;
    font-weight: 800;
}

.employee-id-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
}

.employee-id-body {
    padding: 2rem;
}

.employee-id-grid {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 2rem;
    align-items: center;
}

.employee-id-photo {
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    border: 6px solid #f8fafc;
    box-shadow: 0 12px 30px rgba(15,23,42,0.10);
}

.employee-id-photo-placeholder {
    width: 220px;
    height: 260px;
    border-radius: 24px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: #334155;
}

.employee-id-name {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.employee-id-role {
    margin-top: 0.5rem;
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(29,78,216,0.10);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.85rem;
}

.employee-id-meta {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.employee-id-meta-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}

.employee-id-meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.employee-id-qr {
    text-align: center;
}

.employee-id-qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: white;
    padding: 0.7rem;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.employee-id-code {
    margin-top: 1rem;
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}

.employee-id-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    font-size: 0.88rem;
    color: #64748b;
}

@media print {

    body {
        background: white !important;
    }

    .employee-id-toolbar {
        display: none !important;
    }

    .employee-id-shell {
        background: white !important;
        padding: 0;
    }

    .employee-id-card {
        box-shadow: none;
    }
}

@media (max-width: 991px) {

    .employee-id-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .employee-id-photo,
    .employee-id-photo-placeholder {
        margin: 0 auto;
    }
}

.employee-id-preview-card {
    width: 420px;
    height: 250px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d0d7e2;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.employee-id-preview-header {
    background: #002060;
    color: #fff;
    padding: 12px 16px;
}

.employee-id-preview-school {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.employee-id-preview-subtitle {
    font-size: 0.76rem;
    opacity: 0.9;
}

.employee-id-preview-gold {
    height: 8px;
    background: #D4AF37;
}

.employee-id-preview-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.employee-id-preview-photo {
    width: 74px;
    height: 98px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-id-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-id-preview-info {
    flex: 1;
    font-size: 0.76rem;
    line-height: 1.35;
}

.employee-id-preview-name {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.employee-id-preview-role {
    color: #002060;
    font-weight: 800;
    margin-bottom: 4px;
}

.employee-id-preview-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.employee-id-preview-back {
    height: 250px;
}

.employee-id-preview-back-body {
    height: 54mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    text-align: center;
}

.employee-id-preview-back-body img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.employee-id-preview-code {
    font-weight: 800;
    color: #002060;
}

.employee-id-preview-note {
    font-size: 0.72rem;
    color: #475569;
}

#employeeIdModal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

#employeeIdModal .modal-body {
    background: #f4f7fb;
}

#employeeIdModal .modal-footer {
    background: #f8fafc;
}