@font-face {
    font-family: "PortalArabic";
    src: url("../Fonts/ArbFONTS-Droid Sans Arabic.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PortalKufi";
    src: url("../Fonts/Droid Arabic Kufi.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    background: #eef4f8;
    color: #263846;
    font-family: "PortalArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
.portal-shell-header,
.portal-page {
    font-family: "PortalArabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

.portal-shell-header {
    background: #fff;
    border-bottom: 1px solid #d7e3ea;
    box-shadow: 0 2px 10px rgba(17, 48, 68, 0.06);
}

.portal-shell-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    direction: rtl;
    position: relative;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0d3c5e;
    font-size: 18px;
    font-family: "PortalKufi", "PortalArabic", Tahoma, Arial, sans-serif;
    font-weight: 700;
    margin-left: auto;
}

.portal-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.portal-shell-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-shell-nav a {
    color: #1a6496;
    border: 1px solid #cfe0ea;
    border-radius: 6px;
    padding: 8px 12px;
    background: #f8fbfd;
}

.portal-year-strip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f8fbfd;
    border: 1px solid #e1edf3;
    border-radius: 6px;
    color: #34566d;
    font-size: 14px;
    padding: 8px 16px;
    white-space: nowrap;
}

.portal-year-strip i {
    color: #1a6496;
    margin-left: 6px;
}

.portal-year-strip strong {
    color: #0d3c5e;
    font-family: "PortalKufi", "PortalArabic", Tahoma, Arial, sans-serif;
    margin-right: 4px;
}

.portal-page {
    padding: 30px 0;
}

.login-wrap {
    max-width: 440px;
    margin: 20px auto;
}

.login-card,
.portal-card {
    background: #fff;
    border: 1px solid #dde8ef;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(26, 100, 150, 0.08);
}

.login-card {
    overflow: hidden;
}

.login-header,
.portal-header {
    background: #1a6496;
    color: #fff;
}

.login-header {
    padding: 30px;
    text-align: center;
}

.login-header .icon,
.portal-header .avatar {
    color: #f0c040;
}

.login-header .icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.login-header h3,
.login-header p,
.portal-header h2,
.portal-header p {
    margin: 0;
}

.login-header h3,
.portal-header h2 {
    font-size: 20px;
    font-family: "PortalKufi", "PortalArabic", Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.login-header p,
.portal-header p {
    margin-top: 6px;
    opacity: 0.85;
    font-size: 13px;
}

.login-body {
    padding: 30px;
}

.input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-wrap i.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a6496;
}

.input-wrap input {
    width: 100%;
    padding: 11px 40px 11px 15px;
    border: 2px solid #d9e4eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    direction: rtl;
    outline: none;
    box-sizing: border-box;
}

.input-wrap input:focus {
    border-color: #1a6496;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #1a6496;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-login:hover {
    background: #0d3c5e;
}

.error-box {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    padding: 10px 14px;
    color: #d9534f;
    font-size: 13px;
    margin-top: 12px;
}

.login-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #7b8992;
}

.login-footer a {
    color: #1a6496;
}

.portal-header {
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-header .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.portal-header a {
    color: #f0c040;
    font-size: 13px;
}

.portal-card {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 100, 150, 0.12);
}

.portal-card i {
    font-size: 40px;
    color: #1a6496;
    margin-bottom: 12px;
    display: block;
}

.portal-card h4 {
    color: #1a3a5c;
    margin: 0 0 5px;
    font-family: "PortalKufi", "PortalArabic", Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.portal-card p {
    color: #7b8992;
    font-size: 13px;
    margin: 0;
}

.portal-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.portal-card-menu,
.portal-service-link {
    min-height: 150px;
}

.portal-service-link {
    display: block;
    color: inherit;
}

.portal-service-link:hover,
.portal-service-link:focus {
    color: inherit;
}

.portal-subitems {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.portal-subitems a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    color: #1a6496;
    background: #f8fbfd;
    border: 1px solid #d3dde4;
    border-radius: 6px;
    padding: 9px 11px;
    text-align: right;
}

.portal-subitems a:hover {
    background: #eef4f8;
}

.portal-subitems a i {
    display: inline-block;
    margin: 0;
    color: #1a6496;
    font-size: 15px;
}

.coming-soon {
    background: #f8f9fa;
    border: 2px dashed #d3dde4;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #9aa8b1;
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .portal-shell-inner,
    .portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-year-strip {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
    }

    .portal-shell-nav {
        width: 100%;
        flex-wrap: wrap;
    }
}
