/* ===== صفحة الدخول — مجموعة ستراتيجيك هورايزون ===== */
/* كل القواعد محصورة في صفحة الدخول فقط */

/* 1) التخطيط العام: عمودان (النموذج + لوحة الهوية) */
body[data-path="login"]{background:#F7F3EC!important;font-family:'IBM Plex Sans Arabic',sans-serif!important;color:#0B1F3A}
body[data-path="login"] #page-login{overflow-x:hidden;max-width:100vw;min-height:100vh;display:grid;grid-template-columns:minmax(440px,1fr) 1.15fr}
body[data-path="login"] .page-content-wrapper{box-sizing:border-box;min-width:0;display:flex;align-items:center;justify-content:center;padding:40px 24px;min-height:100vh}
body[data-path="login"] main.container{width:100%;max-width:440px!important;padding:0!important;margin:0 auto}
body[data-path="login"] .page-breadcrumbs,body[data-path="login"] .page-header-wrapper{display:none!important}

/* 2) البطاقة */
body[data-path="login"] .page-card{background:#FFFFFF!important;border:1px solid #D9D0C0!important;border-radius:8px!important;box-shadow:0 24px 60px rgba(11,31,58,.10)!important;padding:40px 36px!important;max-width:none!important;width:100%!important;margin:0!important;position:relative;overflow:hidden}
body[data-path="login"] .page-card::before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:#C8963E;transform-origin:right;animation:shlLine 1s .2s ease-out both}
body[data-path="login"] .page-card-head{align-items:flex-start!important;text-align:right!important}
body[data-path="login"] .page-card-head .app-logo{height:56px!important;width:auto!important;max-width:220px;border-radius:0!important;box-shadow:none!important}
body[data-path="login"] .page-card-head h4{font-size:28px!important;font-weight:700!important;color:#0B1F3A!important;line-height:1.35!important}
body[data-path="login"] .page-card-subtitle{color:#4A5A70!important;font-size:15px!important}

/* 3) الحقول */
body[data-path="login"] .form-group label{color:#0B1F3A!important;font-weight:600!important;font-size:14px!important;margin-bottom:6px!important}
body[data-path="login"] .email-field,body[data-path="login"] .password-field{width:100%;position:relative}
body[data-path="login"] .page-card .form-control{height:48px!important;font:inherit!important;font-size:16px!important;color:#0B1F3A!important;background:#F7F3EC!important;border:1px solid #D9D0C0!important;border-radius:4px!important;padding:0 14px!important;box-shadow:none!important;transition:border-color .2s,box-shadow .2s,background .2s}
body[data-path="login"] .page-card .form-control:hover{border-color:#B9AC95!important}
body[data-path="login"] .page-card .form-control:focus{background:#FFFFFF!important;border-color:#C8963E!important;box-shadow:0 0 0 4px rgba(200,150,62,.18)!important;outline:none!important}
body[data-path="login"] .page-card a{color:#8A6420!important;font-weight:600}
body[data-path="login"] .page-card a:hover{color:#0B1F3A!important}

/* 4) الأزرار */
body[data-path="login"] .page-card .es-button,body[data-path="login"] .page-card .btn{height:50px!important;border-radius:4px!important;font:inherit!important;font-size:16px!important;font-weight:700!important;display:flex!important;align-items:center;justify-content:center;gap:10px;transition:transform .15s,box-shadow .2s,background .2s,border-color .2s}
body[data-path="login"] .page-card button.es-button,body[data-path="login"] .page-card .btn-primary{background:#0B1F3A!important;color:#F7F3EC!important;border:0!important}
body[data-path="login"] .page-card button.es-button:hover,body[data-path="login"] .page-card .btn-primary:hover{background:#163A63!important;box-shadow:0 10px 24px rgba(11,31,58,.22);transform:translateY(-1px)}
body[data-path="login"] .page-card .btn-login-option{white-space:normal!important;line-height:1.4;text-align:center;padding:0 12px!important;background:#FFFFFF!important;color:#0B1F3A!important;border:1px solid #D9D0C0!important;text-decoration:none!important}
body[data-path="login"] .page-card .btn-login-option:hover{border-color:#0B1F3A!important;transform:translateY(-1px)}
body[data-path="login"] .page-card .btn-login-option img,body[data-path="login"] .page-card .btn-login-option svg{width:20px;height:20px}
body[data-path="login"] .shl-or{display:flex;align-items:center;gap:12px;color:#4A5A70;font-size:13px}
body[data-path="login"] .shl-or::before,body[data-path="login"] .shl-or::after{content:"";flex:1;height:1px;background:#D9D0C0}
body[data-path="login"] .social-logins{display:flex;flex-direction:column;gap:12px}
body[data-path="login"] .social-logins .login-divider,body[data-path="login"] .login-divider{color:#4A5A70!important}

/* 5) أسفل البطاقة */
body[data-path="login"] .shl-foot{margin-top:20px;display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#4A5A70}
body[data-path="login"] .shl-foot a{color:#4A5A70;text-decoration:none}
body[data-path="login"] .shl-foot a:hover{color:#8A6420}

/* 6) لوحة الهوية (الجهة الأخرى) */
.shl-panel,.shl-panel *{box-sizing:border-box}
.shl-panel{direction:rtl;text-align:right;position:relative;background:#0B1F3A;color:#F7F3EC;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:48px 56px;min-height:100vh}
.shl-panel::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(247,243,236,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(247,243,236,.045) 1px,transparent 1px);background-size:56px 56px;pointer-events:none}
.shl-panel>*{position:relative;z-index:1}
.shl-brand img{height:76px;width:auto;display:block}
.shl-globe{width:100%;max-width:520px;margin:8px auto 0}
.shl-globe canvas{display:block;width:100%;aspect-ratio:1/.8}
.shl-eyebrow{margin:0 0 10px;color:#C8963E;font-size:12px;font-weight:600;letter-spacing:.18em}
.shl-panel .shl-title{text-align:right;margin:0 0 12px;font-size:38px;font-weight:700;line-height:1.3;color:#F7F3EC}
.shl-panel .shl-text{text-align:right;margin:0 0 22px;color:#D8D2C6;font-size:16px;max-width:460px;line-height:1.8}
.shl-points{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.shl-points li{display:flex;align-items:center;gap:8px;border:1px solid rgba(217,170,85,.35);border-radius:4px;padding:7px 12px;font-size:14px;color:#F7F3EC;background:rgba(22,58,99,.45)}
.shl-points li::before{content:"";width:6px;height:6px;border-radius:50%;background:#D9AA55}

/* 7) الحركات */
@keyframes shlUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes shlLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
body[data-path="login"] .page-card-head,body[data-path="login"] .page-card .form-group,body[data-path="login"] .page-card-actions,body[data-path="login"] .social-logins{animation:shlUp .6s ease-out both}
body[data-path="login"] .page-card .form-group:nth-of-type(2){animation-delay:.08s}
body[data-path="login"] .page-card .form-group:nth-of-type(3){animation-delay:.16s}
body[data-path="login"] .page-card-actions{animation-delay:.24s}
body[data-path="login"] .social-logins{animation-delay:.32s}
.shl-reveal{animation:shlUp .8s ease-out both}
.shl-reveal.d2{animation-delay:.15s}.shl-reveal.d3{animation-delay:.3s}

/* 8) التابلت والجوال: اللوحة تصبح شريطاً علوياً */
@media (max-width:980px){
  body[data-path="login"] #page-login{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .shl-panel{order:-1;min-height:0;padding:28px 24px 22px;flex-direction:row;align-items:center;gap:16px}
  .shl-globe,.shl-points,.shl-text,.shl-eyebrow{display:none}
  .shl-brand img{height:54px}
  .shl-panel .shl-title{font-size:17px;margin:0;color:#D9AA55}
  body[data-path="login"] .page-content-wrapper{min-height:0;padding:28px 16px 40px;align-items:flex-start}
  body[data-path="login"] .page-card-head .app-logo{display:none!important}
}
@media (max-width:480px){
  body[data-path="login"] .page-card{padding:28px 20px!important}
  .shl-panel{flex-direction:column;align-items:flex-start;gap:8px}
}
@media (prefers-reduced-motion:reduce){body[data-path="login"] *,.shl-panel *{animation:none!important;transition:none!important}}
