*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background: var(--osrah-bg, #F4F6F8);
    font-family: var(--osrah-font, 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif);
    color: var(--osrah-text, #111A2B);
}

.login-wrapper{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 38% 62%;
    direction: rtl; /* لوحة تسجيل الدخول يمين الشاشة، اللوحة التعريفية يسار الشاشة */
}

/* ===== اللوحة اليسرى: نموذج تسجيل الدخول ===== */

.login-panel{
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px;
    background: var(--osrah-surface, #fff);
}

.brand-mini{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.brand-mini-icon{
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--osrah-success, #1F6F5C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-mini-logo-img{
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-mini strong{
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--osrah-primary, #0D2438);
}

.brand-mini span{
    display: block;
    font-size: 12.5px;
    color: var(--osrah-text-muted, #4A5468);
    margin-top: 2px;
}

.login-box{
    flex: 1;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.login-box h1{
    font-size: 26px;
    font-weight: 800;
    color: var(--osrah-primary, #0D2438);
    margin-bottom: 8px;
}

.login-subtitle{
    font-size: 14px;
    color: var(--osrah-text-muted, #4A5468);
    margin-bottom: 28px;
    line-height: 1.6;
}

.alert{
    display: flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--osrah-danger, #C85C50) 12%, #fff);
    color: var(--osrah-danger, #C85C50);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.field-group{
    margin-bottom: 18px;
}

.field-group label{
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--osrah-text, #111A2B);
    margin-bottom: 8px;
}

.input-icon-box{
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-box input{
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--osrah-border, #E6E9EE);
    border-radius: 12px;
    background: var(--osrah-surface-soft, #F4F6F8);
    font-size: 14px;
    color: var(--osrah-text, #111A2B);
    outline: none;
    font-family: inherit;
    transition: .15s;
}

.input-icon-box input:focus{
    border-color: var(--osrah-primary, #0D2438);
    background: var(--osrah-surface, #fff);
}

.input-icon-box i{
    position: absolute;
    right: 16px;
    color: var(--osrah-text-light, #8993A6);
    font-size: 15px;
    pointer-events: none;
}

.input-icon-box.icon-left input{
    padding: 0 16px 0 44px;
}

.input-icon-box.icon-left i{
    right: auto;
    left: 16px;
}

.field-row-between{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--osrah-text-muted, #4A5468);
    cursor: pointer;
}

.remember input{
    width: 16px;
    height: 16px;
    accent-color: var(--osrah-primary, #0D2438);
}

.forgot-link{
    font-size: 13px;
    font-weight: 800;
    color: var(--osrah-success, #1F6F5C);
    text-decoration: none;
}

.forgot-link:hover{
    text-decoration: underline;
}

.submit-btn{
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--osrah-success, #1F6F5C);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .15s;
    font-family: inherit;
}

.submit-btn:hover{
    filter: brightness(0.92);
}

.security-note{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--osrah-surface-soft, #F4F6F8);
    border: 1px solid var(--osrah-border, #E6E9EE);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 22px;
}

.security-note i{
    color: var(--osrah-text-light, #8993A6);
    font-size: 15px;
    margin-top: 2px;
}

.security-note p{
    font-size: 12.5px;
    color: var(--osrah-text-muted, #4A5468);
    line-height: 1.7;
}

.login-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    font-size: 12px;
    color: var(--osrah-text-light, #8993A6);
    font-weight: 600;
}

/* ===== اللوحة اليمنى: تعريفية ===== */

.brand-panel{
    direction: rtl;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--osrah-primary, #0D2438), var(--osrah-secondary, #173A5A));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px;
}

.brand-panel-inner{
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.version-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.version-pill i{
    font-size: 6px;
    color: var(--osrah-accent, #C98A3A);
}

.brand-panel-inner h2{
    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
    margin: 24px 0 16px;
}

.brand-panel-inner p{
    font-size: 15px;
    color: rgba(255,255,255,.7);
    line-height: 1.8;
    max-width: 440px;
}

.brand-rings{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.brand-rings::before,
.brand-rings::after{
    content: '';
    position: absolute;
    left: -10%;
    bottom: -30%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.brand-rings::before{
    width: 700px;
    height: 700px;
}

.brand-rings::after{
    width: 480px;
    height: 480px;
    left: 5%;
    bottom: -18%;
    border-color: color-mix(in srgb, var(--osrah-accent, #C98A3A) 30%, transparent);
}

.brand-stats{
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    margin-top: 56px;
}

.brand-stats strong{
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--osrah-accent, #C98A3A);
}

.brand-stats span{
    display: block;
    font-size: 12.5px;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
    font-weight: 600;
}

.brand-panel-footer{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    font-weight: 600;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 900px){
    .login-wrapper{
        grid-template-columns: 1fr;
    }

    .brand-panel{
        display: none;
    }

    .login-panel{
        padding: 32px 24px;
    }
}
