/* صفحة الدخول (Account/Login): المشهد يملأ الشاشة، وبطاقة الدخول زجاجية غامقة فوقه. المشهد يختاره مشغل الخدمة (1..6). */
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: #050B14; color: #E6EDF6; font-family: Cairo, system-ui, sans-serif; }
.dk { position: fixed; inset: 0; }
.dk canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dk-vign { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 30% 50%, transparent 40%, rgba(3,7,13,.75) 100%); }

/* بطاقة الدخول */
.dk-card {
  position: absolute; z-index: 5; top: 50%; inset-inline-start: clamp(24px, 6vw, 96px); translate: 0 -50%;
  width: 400px; max-width: calc(100vw - 48px); padding: 34px 34px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20,34,54,.72), rgba(8,15,26,.78)); border: 1px solid rgba(140,180,255,.14);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.dk-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(110,155,255,.55), rgba(46,211,198,.0) 40%, rgba(46,211,198,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.dk-brand { display: flex; align-items: center; gap: 12px; }
.dk-brand .mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #0B5FFF, #2ED3C6); box-shadow: 0 8px 24px rgba(11,95,255,.45); }
.dk-brand b { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.dk-brand span { font-size: 12px; color: #8DA0B8; }
.dk-card h1 { margin: 28px 0 4px; font-size: 26px; font-weight: 800; color: #fff; }
.dk-card p.lead { margin: 0 0 22px; font-size: 13px; color: #8DA0B8; }
.dk-field { display: grid; gap: 6px; margin-bottom: 14px; }
.dk-field label { font-size: 12.5px; color: #A9B7C9; font-weight: 600; }
.dk-field input { height: 44px; border-radius: 11px; border: 1px solid rgba(140,180,255,.16); background: rgba(5,11,20,.55); color: #fff; padding: 0 14px;
  font: 500 14px 'IBM Plex Mono', monospace; direction: ltr; outline: none; transition: border-color .2s, box-shadow .2s; }
.dk-field input:focus { border-color: #4D8DFF; box-shadow: 0 0 0 4px rgba(77,141,255,.18); }
.dk-btn { width: 100%; height: 46px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer; font: 800 15px Cairo, sans-serif; color: #fff;
  background: linear-gradient(135deg, #0B5FFF, #1E88FF 55%, #2ED3C6); box-shadow: 0 12px 30px rgba(11,95,255,.4); transition: transform .15s, box-shadow .15s; }
.dk-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(11,95,255,.55); }
.dk-foot { margin-top: 18px; font-size: 12px; color: #6A7F98; text-align: center; }
.dk-foot a { color: #6E9BFF; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; justify-content: center; }
.dk-chips span { font-size: 11px; color: #A9B7C9; border: 1px solid rgba(140,180,255,.14); border-radius: 20px; padding: 3px 10px; background: rgba(5,11,20,.4); }

/* شريط علوي وعنوان كبير على جهة المشهد */
.dk-top { position: absolute; z-index: 4; top: 22px; inset-inline-end: 26px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.dk-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 20px; font-size: 12px; color: #A9B7C9;
  background: rgba(8,15,26,.7); border: 1px solid rgba(140,180,255,.14); backdrop-filter: blur(8px); }
.dk-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #16C75B); box-shadow: 0 0 10px var(--c, #16C75B); }
.dk-pill b { font: 600 13px 'IBM Plex Mono', monospace; color: #fff; }
.dk-title { position: absolute; z-index: 4; inset-inline-end: 6vw; bottom: 8vh; max-width: 520px; text-align: end; pointer-events: none; }
.dk-title small { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #2ED3C6; margin-bottom: 8px; }
.dk-title h2 { margin: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; font-weight: 900; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.dk-title p { margin: 10px 0 0; color: #8DA0B8; font-size: 14.5px; line-height: 1.8; }

.dk-tip { position: absolute; z-index: 6; pointer-events: none; min-width: 190px; padding: 11px 14px; border-radius: 14px; background: rgba(8,15,26,.92);
  border: 1px solid var(--c, #2A3D55); box-shadow: 0 14px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.dk-tip.in { opacity: 1; transform: none; }
.dk-tip b { display: block; font-size: 13.5px; color: #fff; }
.dk-tip span { font-size: 11.5px; color: #8DA0B8; }
.dk-tip .v { display: flex; gap: 14px; margin-top: 5px; font: 600 18px 'IBM Plex Mono', monospace; direction: ltr; justify-content: flex-end; }
.dk-tip .v em { font-style: normal; color: var(--c); }

@media (max-width: 860px) { .dk-title, .dk-top { display: none; } .dk-card { inset-inline-start: 50%; translate: 50% -50%; } }

/* رسائل النموذج والشعار المرفوع (العلامة البيضاء) */
.dk-msg { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; }
.dk-msg.err { background: rgba(224,57,62,.14); border: 1px solid rgba(255,107,112,.35); color: #FFB3B5; }
.dk-msg.info { background: rgba(77,141,255,.12); border: 1px solid rgba(110,155,255,.3); color: #BFD3FF; }
.dk-brand .mark.img { background: #fff; padding: 4px; width: auto; min-width: 42px; max-width: 120px; }
.dk-brand .mark.img img { max-height: 34px; max-width: 110px; display: block; }
