/* بوابة الدخول: بطاقة واحدة بنسق الفرات. لا مصباح، لا دوران، لا رسوم. */
.qaym-gateway { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--q-paper); color: var(--q-text); padding: 0 clamp(16px, 4vw, 40px); }
.qaym-gateway [hidden] { display: none !important; }
.gateway-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--q-line); }
.gateway-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--q-ink); font-weight: 700; font-size: 17px; }
.gateway-brand bdi { margin-inline-start: 8px; font-size: 11px; letter-spacing: .14em; color: var(--q-muted); font-weight: 600; }
.gateway-header-actions { display: flex; align-items: center; gap: 10px; }
.gateway-card { align-self: center; justify-self: center; width: min(420px, 100%); margin: 32px 0; background: var(--q-card); border: 1px solid var(--q-line); border-top: 3px solid var(--q-seal); border-radius: var(--q-r); box-shadow: var(--q-shadow); padding: 26px 24px 22px; }
.gateway-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.gateway-card-head h1 { margin: 0; font-size: 21px; line-height: 1.35; color: var(--q-ink); }
.gateway-card-caption { margin: 2px 0 0; color: var(--q-muted); font-size: 13.5px; }
.gateway-credential-form { display: grid; gap: 14px; }
.gateway-field { display: grid; gap: 6px; font-size: 13.5px; color: var(--q-ink-2); font-weight: 600; }
.gateway-field input { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 15px; font-weight: 400; }
.gateway-field input[dir=ltr] { text-align: left; }
.gateway-password-field { position: relative; }
.gateway-password-toggle { position: absolute; inset-inline-end: 8px; bottom: 7px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--q-soft); color: var(--q-ink-2); font-size: 12.5px; cursor: pointer; }
.gateway-password-field input { padding-inline-end: 72px; }
.gateway-primary { min-height: 46px; font-size: 15px; margin-top: 4px; width: 100%; }
.gateway-form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--q-bad-soft); color: var(--q-bad); font-size: 13.5px; }
.gateway-text-link { display: block; margin-top: 16px; text-align: center; color: var(--q-ink-2); font-size: 13.5px; }
.gateway-preview-badge { margin: 0 0 12px; padding: 6px 10px; border-radius: 6px; background: var(--q-gold-soft); color: var(--q-warn); font-size: 12.5px; }
.gateway-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--q-line); color: var(--q-muted); font-size: 12px; }
.gateway-footer bdi { letter-spacing: .12em; }
.embedded-gateway .qaym-gateway { min-height: auto; padding: 0; grid-template-rows: 1fr; }
.embedded-gateway :is(.gateway-header, .gateway-footer) { display: none; }
.embedded-gateway .gateway-card { margin: 0; box-shadow: none; }
@media (max-width: 520px) { .gateway-card { padding: 22px 16px 18px; margin: 20px 0; } .gateway-footer { flex-direction: column; } }
.gateway-demo { margin-top: 16px; padding: 12px; border: 1px dashed var(--q-gold); border-radius: 8px; background: var(--q-gold-soft); display: grid; gap: 8px; font-size: 12.5px; color: var(--q-warn); }
.gateway-demo-list { display: grid; gap: 6px; }
.gateway-demo-fill { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--q-line); border-radius: 7px; background: var(--q-card); color: var(--q-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: start; transition: transform .18s, border-color .15s; }
.gateway-demo-fill:hover { border-color: var(--q-seal); transform: translateY(-1px); }
.gateway-demo-fill small { color: var(--q-muted); }
