/* Scoped redesign for #login-page. Only touches the foreground login UI —
   the video background block (#firstVideo / #secondVideo) is untouched. */

/* ---------- Page layout: center the card both horizontally and vertically ---------- */

#login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#login-page .container-fluid {
    flex: 0 0 auto;
}

/* ---------- Brand / logo ---------- */

#login-page .sp-brand-row {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 10px;
}

    #login-page .sp-brand-row img {
        max-width: 100%;
        filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
    }

#login-page .sp-login-wrap {
    position: relative;
    z-index: 2;
    flex: 0.5 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

#login-page .sp-login-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255,255,255,0.93);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(11,41,91,0.35);
    padding: 40px 48px;
    animation: sp-fade-up .5s ease both;
}

@keyframes sp-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login-page .sp-login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

#login-page .sp-login-title {
    font-size: 30px;
    font-weight: 700;
    color: #0b295b;
    margin-bottom: 6px;
}

#login-page .sp-login-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    margin: 0;
}

#login-page .sp-field {
    margin-bottom: 20px;
}

    #login-page .sp-field label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #374151;
        margin: 0 0 8px;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

#login-page .sp-input-icon {
    position: relative;
}

    #login-page .sp-input-icon > .fa:first-child {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 15px;
        pointer-events: none;
    }

    #login-page .sp-input-icon input.form-control {
        padding: 12px 40px;
        height: 48px;
        border-radius: 10px;
        border: 1px solid #d9dee3;
        font-size: 15px;
        background: #fff;
        margin-bottom: 0;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        #login-page .sp-input-icon input.form-control:focus {
            border-color: #12469a;
            box-shadow: 0 0 0 3px rgba(18,70,154,0.12);
        }

#login-page .sp-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
}

    #login-page .sp-toggle-password:hover {
        color: #12469a;
    }

#login-page .sp-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 28px;
}

#login-page .sp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

    #login-page .sp-remember input {
        width: 16px;
        height: 16px;
        accent-color: #12469a;
        cursor: pointer;
        margin: 0;
    }

#login-page .sp-forgot-link {
    font-size: 14px;
    font-weight: 700;
    color: #12469a;
    cursor: pointer;
}

    #login-page .sp-forgot-link:hover {
        text-decoration: underline;
        color: #0b295b;
    }

#login-page .sp-login-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(to right, #0b295b 1%, #12469a 100%);
    box-shadow: 0 10px 24px rgba(18,70,154,0.35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    #login-page .sp-login-btn i {
        margin-right: 8px;
    }

    #login-page .sp-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(18,70,154,0.45);
        color: #fff;
    }

    #login-page .sp-login-btn:active {
        transform: translateY(0);
    }

#login-page footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* ---------- Alerts (session-expired / logged-out / server errors) ---------- */

#login-page .sp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

    #login-page .sp-alert i {
        margin-top: 2px;
    }

#login-page .sp-alert-success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

#login-page .sp-alert-info {
    background: #eff6ff;
    color: #175cd3;
    border: 1px solid #b2ddff;
}

#login-page .sp-alert-danger {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

#login-page .validation-summary-valid {
    display: none;
}

#login-page .sp-validation-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- Field-level validation messages ---------- */

#login-page .field-validation-valid {
    display: none;
}

#login-page .field-validation-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #dc2626;
}

    #login-page .field-validation-error::before {
        font-family: FontAwesome;
        content: "\f06a";
        font-weight: 400;
    }

#login-page .sp-input-icon input.form-control.input-validation-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

/* ---------- Submit / loading state ---------- */

#login-page .sp-login-btn[disabled] {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
}

/* Forgot-password modal — light restyle to match, structure/IDs untouched */
#login-page #forgetform .modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

#login-page #forgetform .modal-header {
    background: linear-gradient(to right, #0b295b 1%, #12469a 100%);
    color: #fff;
    border-bottom: none;
}

    #login-page #forgetform .modal-header h4 {
        color: #fff;
    }

    #login-page #forgetform .modal-header .close {
        color: #fff;
        opacity: .8;
        text-shadow: none;
    }

#login-page #forgetform .modal-footer {
    border-top: none;
}

#login-page #forgetform .login-btn {
    background: linear-gradient(to right, #0b295b 1%, #12469a 100%);
    border: none;
    border-radius: 10px;
}

/* ---------- Responsive ---------- */

/* Medium (768-991px) and xl (>=1200px) screens: lift the copyright footer 100px above the
   bottom edge. Uses "bottom" under the footer's existing position:relative rather than
   margin-bottom, so it only shifts where the footer paints - it doesn't shrink the
   flex-grow .sp-login-wrap above it or shift the vertically-centered login card. */
@media (min-width: 768px) and (max-width: 991px), (min-width: 1200px) {
    #login-page footer {
        position: relative;
        bottom: 50px;
    }
}

@media (max-width: 991px) {
    #login-page .sp-login-card {
        max-width: 640px;
        padding: 34px 34px;
    }
}

@media (max-width: 767px) {
    #login-page .sp-brand-row img {
        max-width: 100%;
    }

    #login-page .sp-login-wrap {
        padding: 20px 14px;
    }

    #login-page .sp-login-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    #login-page .sp-login-title {
        font-size: 24px;
    }

    #login-page .sp-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 380px) {
    #login-page .sp-login-title {
        font-size: 21px;
    }

    #login-page .sp-login-subtitle {
        font-size: 12px;
    }
}
