html,
body.staff-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
}

body.staff-login-body {
    background: linear-gradient(160deg, #eef4f8 0%, #f8fbfd 45%, #e8f0f6 100%);
    font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.staff-login-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.staff-login-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a4f6c 0%, #2d7a9e 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(26, 79, 108, 0.22);
}

.staff-login-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.staff-login-header-inner > * {
    margin: 6px;
}

.staff-login-brand {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.staff-login-brand:hover,
.staff-login-brand:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.96;
}

.staff-login-logo {
    flex-shrink: 0;
    height: 68px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    display: block;
}

.staff-login-imam-info {
    margin-right: 14px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.staff-login-imam-info h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
    color: #fff;
}

.staff-login-service-title {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.staff-login-student-link {
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    background: transparent !important;
    white-space: nowrap;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
}

.staff-login-student-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.staff-login-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
}

.staff-login-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #dde6ed;
    color: #7a8a98;
    font-size: 12px;
    line-height: 1.5;
}

.staff-login-footer small {
    display: block;
}

.staff-login-card-wrap {
    width: 100%;
    max-width: 460px;
}

.staff-login-card {
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26, 79, 108, 0.12);
    overflow: hidden;
}

.staff-login-card-head {
    background: linear-gradient(135deg, #1a4f6c 0%, #2d7a9e 100%);
    color: #fff;
    padding: 24px 26px 20px;
    text-align: center;
}

.staff-login-card-head i {
    font-size: 34px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.95;
}

.staff-login-card-head h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.staff-login-card-head p {
    margin: 0;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.7;
}

.staff-login-card-body {
    padding: 26px 26px 22px;
}

.staff-login-card-body .form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.staff-login-input-wrap {
    position: relative;
}

.staff-login-input-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa3b5;
    pointer-events: none;
}

.staff-login-input-wrap .form-control {
    padding-right: 38px;
    height: 42px;
    border-radius: 8px;
    border-color: #cfd9e3;
}

.staff-login-input-wrap .form-control:focus {
    border-color: #2d7a9e;
    box-shadow: 0 0 0 0.15rem rgba(45, 122, 158, 0.18);
}

.staff-login-submit {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-top: 6px;
    background: linear-gradient(135deg, #1a4f6c 0%, #2d7a9e 100%);
    border: none;
    color: #fff;
}

.staff-login-submit:hover,
.staff-login-submit:focus {
    background: linear-gradient(135deg, #164258 0%, #256985 100%);
    color: #fff;
}

.staff-login-note {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f4f9fc;
    border: 1px solid #d4e8f2;
    border-right: 4px solid #1a4f6c;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
    color: #566677;
}

.staff-login-card-body .validation-summary-valid {
    display: none;
}

@media (max-width: 767px) {
    .staff-login-header-inner {
        justify-content: center;
        text-align: center;
    }

    .staff-login-brand {
        flex-direction: column;
        align-items: center;
    }

    .staff-login-imam-info {
        margin: 10px 0 0;
        padding: 0;
        border: 0;
    }
}

@media (max-width: 575px) {
    .staff-login-card-body {
        padding: 22px 18px 18px;
    }
}
