@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/auth/assets/ibm-plex-arabic-0.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/auth/assets/ibm-plex-arabic-1.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/auth/assets/ibm-plex-arabic-2.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/auth/assets/ibm-plex-arabic-3.ttf') format('truetype');
}
:root {
  --primary: #7850b5;
  --primary-hover: #624094;
  --soft: #f0ebf8;
  --ink: #202238;
  --muted: #696e83;
  --border: #e9eaf2;
  --page: #f6f7fb;
  --good: #21776b;
  --danger: #a13644;
  --font: 'IBM Plex Sans Arabic', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 14px/1.7 var(--font);
}
[hidden] {
  display: none !important;
}
button,
input,
a {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
dialog:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
  width: 22px;
  height: 22px;
}
img {
  display: block;
}
small {
  font-size: 12px;
}
.skip {
  position: fixed;
  top: -100px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.site-header,
.site-footer {
  max-width: 1500px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 2;
  text-align: right;
}
.header-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.login-layout {
  max-width: 1500px;
  margin: auto;
  padding: 22px 64px 35px;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(460px, 1.12fr);
  gap: 72px;
  align-items: start;
}
.form-section {
  width: 100%;
  max-width: 415px;
  justify-self: center;
  padding: 12px 0;
}
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 9px;
}
.form-heading h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.55;
}
.form-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  margin-top: 16px;
}
form {
  margin-top: 30px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 9px;
}
.label-en {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-inline-start: 6px;
}
.field input {
  border: 1px solid #dedee9;
  border-radius: 10px;
  background: #fff;
  min-height: 52px;
  width: 100%;
  padding: 11px 16px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:hover {
  border-color: #bcb6ce;
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #7850b510;
}
.field input::placeholder {
  color: #8c8fa0;
}
.field input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 11px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}
.text-button:hover {
  text-decoration: underline;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-left: 54px;
}
.password-toggle {
  position: absolute;
  left: 6px;
  top: 5px;
  width: 43px;
  height: 43px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.password-toggle:hover {
  background: var(--soft);
  color: var(--primary);
}
.eye-slash {
  display: none;
}
.password-toggle[aria-pressed='true'] .eye-slash {
  display: block;
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 7px;
}
.field .caps-lock {
  color: #855619;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  padding: 11px 16px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary-button:not(:disabled):hover {
  background: var(--primary-hover);
}
.primary-button:not(:disabled):active {
  transform: translateY(1px);
}
.primary-button svg {
  width: 19px;
  height: 19px;
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #ffffff60;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form-status {
  font-size: 12px;
  color: var(--primary);
  text-align: center;
  min-height: 0;
}
.form-status:not(:empty) {
  margin-top: 10px;
}
.notice {
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.9;
}
.error {
  background: #fff0f1;
  border: 1px solid #efd6da;
  color: #842d39;
  margin-bottom: 20px;
}
.service-notice {
  background: #fff7e9;
  border: 1px solid #f0e1c6;
  color: #795522;
  margin-top: 16px;
}
.included {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #faf9fc;
  border: 1px solid #eeeaf5;
  padding: 15px;
  border-radius: 10px;
  margin-top: 23px;
  color: var(--ink);
  font-size: 12px;
}
.included p > span {
  font-size: 11px;
  color: var(--muted);
}
.check-mark {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  background: var(--soft);
  color: var(--primary);
  border-radius: 50%;
  text-align: center;
  line-height: 19px;
  font-size: 12px;
  margin-top: 2px;
}
.session-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 24px;
}
.session-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.story-panel {
  align-self: stretch;
  min-height: 625px;
  max-height: 790px;
  padding: 40px 40px 27px;
  border-radius: 24px;
  background: #f4f0fa;
  border: 1px solid #eee8f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}
.story-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}
.story-number {
  font-size: 9px;
  color: #8b7ba5;
  letter-spacing: 1px;
  white-space: nowrap;
}
.story-panel h2 {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.8px;
  color: #3e2e56;
}
.story-copy {
  font-size: 13px;
  color: #756a85;
  line-height: 1.95;
  margin-top: 13px;
}
.ecosystem {
  position: relative;
  height: 280px;
  margin: 25px 0 16px;
  direction: ltr;
  flex-shrink: 0;
}
.hub-node {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 256px;
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid #e3d9f1;
  border-radius: 15px;
  box-shadow: 0 9px 20px #49396908;
  z-index: 2;
}
.hub-node strong {
  display: block;
  color: #413150;
  font-size: 14px;
  font-weight: 500;
}
.hub-node small {
  display: block;
  color: #82778e;
  font-size: 10px;
  margin-top: 2px;
}
.node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a282cd;
  margin-right: auto;
}
.product-node {
  position: absolute;
  top: 177px;
  width: 39%;
  padding: 17px 8px 12px;
  background: #ffffffcf;
  border: 1px solid #e5def0;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
}
.product-node strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
  margin-top: 8px;
}
.product-node small {
  font-size: 8px;
  letter-spacing: 0.7px;
  color: #91869e;
  display: block;
  margin-top: 2px;
}
.product-icon {
  display: grid;
  place-items: center;
  color: #8164a5;
}
.product-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pos-node {
  right: 7%;
}
.store-node {
  left: 7%;
}
.connection-line {
  position: absolute;
  border-color: #d6c7e8;
  z-index: 1;
}
.line-one {
  left: 26.5%;
  right: 26.5%;
  height: 48px;
  top: 130px;
  border-left: 1px solid #d6c7e8;
  border-right: 1px solid #d6c7e8;
  border-top: 1px solid #d6c7e8;
  border-radius: 14px 14px 0 0;
}
.line-two {
  left: 50%;
  top: 95px;
  height: 84px;
  border-left: 1px solid #d6c7e8;
}
.line-three {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border: 2px solid #f4f0fa;
  border-radius: 50%;
  left: calc(50% - 3px);
  top: 127px;
}
.story-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #82748f;
  border-top: 1px solid #e5ddef;
  padding-top: 24px;
  margin-top: auto;
}
.separator {
  color: #c5b4d8;
}
.site-footer {
  padding-top: 5px;
  padding-bottom: 24px;
  font-size: 10px;
  color: #7e8192;
}
dialog {
  width: min(460px, calc(100vw - 36px));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  color: var(--ink);
  font: 14px/1.9 var(--font);
  box-shadow: 0 24px 80px #20223820;
}
dialog::backdrop {
  background: #20223865;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  font-weight: 600;
}
dialog p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.dialog-close {
  position: absolute;
  top: 10px;
  left: 12px;
  border: 0;
  background: var(--page);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}
dialog .primary-button {
  margin-top: 24px;
}
dialog .dialog-note {
  font-size: 11px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.account-layout {
  width: min(820px, calc(100% - 48px));
  margin: 48px auto 100px;
}
.account-layout h1 {
  font-size: 32px;
  font-weight: 600;
}
.account-layout > p {
  color: var(--muted);
  margin-top: 10px;
}
.account-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-top: 26px;
  background: #fff;
}
.account-card h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}
.account-data {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.account-data dt {
  font-size: 11px;
  color: var(--muted);
}
.account-data dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.account-data bdi {
  display: inline-block;
  max-width: 100%;
}
.account-status {
  color: var(--good);
  font-size: 12px;
}
.account-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.outline-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 12px;
}
.outline-button:hover {
  background: var(--page);
}
.callback-panel {
  max-width: 440px;
  margin: 15vh auto;
  text-align: center;
  padding: 28px;
}
.callback-panel img {
  margin: 0 auto 24px;
}
.callback-panel h1 {
  font-size: 25px;
}
.callback-panel p {
  margin-top: 16px;
  color: var(--muted);
}
.callback-panel a {
  margin-top: 24px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .login-layout {
    gap: 120px;
    padding-bottom: 52px;
  }
  .story-panel {
    padding: 52px;
    min-height: 690px;
  }
  .ecosystem {
    margin-top: 38px;
  }
  .form-heading h1 {
    font-size: 40px;
  }
}
@media (max-width: 1199px) {
  .site-header,
  .site-footer {
    padding-inline: 36px;
  }
  .login-layout {
    padding-inline: 36px;
    gap: 36px;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1fr);
  }
  .story-panel {
    padding: 32px 25px;
  }
  .story-panel h2 {
    font-size: 30px;
  }
  .form-heading h1 {
    font-size: 32px;
  }
  .story-number {
    display: none;
  }
}
@media (max-width: 900px) {
  .site-header {
    padding: 24px;
  }
  .login-layout {
    display: block;
    padding: 30px 24px 40px;
    min-height: 0;
  }
  .form-section {
    margin: auto;
  }
  .story-panel {
    display: none;
  }
  .site-footer {
    padding: 20px 24px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .form-heading h1 {
    font-size: 32px;
  }
  .header-label {
    font-size: 10px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand small {
    font-size: 8px;
  }
  .session-note {
    font-size: 10px;
  }
  .account-data {
    grid-template-columns: 1fr;
  }
  .account-layout {
    margin-top: 24px;
  }
  .account-layout h1 {
    font-size: 27px;
  }
}
@media (max-width: 380px) {
  .header-label {
    display: none;
  }
  .site-header {
    padding-bottom: 12px;
  }
  .form-heading h1 {
    font-size: 29px;
  }
  .login-layout {
    padding-inline: 20px;
  }
  .label-en {
    font-size: 10px;
  }
  .session-note {
    align-items: flex-start;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
