/* MyDIAKO login modal — luxury refresh (owner 2026-11-29). Scoped to the MyDIAKO dialog only. */
.auth-modal .auth-modal__dialog--mydiako {
  width: min(470px, calc(100vw - 28px));
  padding: 1.6rem 1.7rem 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(242, 106, 27, 0.10), rgba(242, 106, 27, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  box-shadow: 0 40px 90px -30px rgba(11, 20, 38, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow-x: hidden;
}
.auth-modal .auth-modal__dialog--mydiako::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #f26a1b, #fdba74 50%, #16325c);
}
.auth-modal .auth-modal__dialog--mydiako .auth-modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f1f4f9; border: 1px solid #e3e8f0; color: #475569;
  transition: background .18s ease, transform .18s ease;
}
.auth-modal .auth-modal__dialog--mydiako .auth-modal__close:hover { background: #e8edf5; transform: rotate(90deg); }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__brand { margin: .2rem 0 .6rem; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__logo { height: 58px; max-width: 140px; }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__head { text-align: center; margin-bottom: 1.1rem; }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__head h2,
.auth-modal .auth-modal__dialog--mydiako .auth-modal__head h3 {
  font-size: 1.45rem; font-weight: 900; color: #0f1b2d; letter-spacing: -.01em; margin: 0 0 .35rem;
}
.auth-modal .auth-modal__dialog--mydiako .auth-modal__head p { color: #64748b; font-size: .92rem; line-height: 1.9; margin: 0; }

/* fields: each label + input is its own block, stacked with air between */
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form { display: grid; gap: 1rem; }
.auth-modal .auth-modal__dialog--mydiako [data-mydiako-abroad]:not([hidden]) { display: grid; gap: 1rem; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-field { display: grid; gap: .45rem; min-width: 0; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-field[hidden] { display: none; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-field > label,
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form label {
  display: block; margin: 0; font-size: .88rem; font-weight: 800; color: #16325c;
}
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__req { color: #f26a1b; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__opt { color: #94a3b8; font-weight: 600; font-size: .8rem; }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input[type="email"],
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input[type="tel"],
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input[type="text"],
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input[type="password"] {
  width: 100%; min-height: 54px; box-sizing: border-box;
  padding: 0 1rem; font-size: 1.02rem; color: #0f1b2d;
  background: #f6f8fb; border: 1.5px solid #dde4ee; border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input::placeholder { color: #a3b0c2; }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__form input:focus {
  outline: none; background: #fff; border-color: #f26a1b; box-shadow: 0 0 0 4px rgba(242, 106, 27, .14);
}
/* phone row (country code + number) as one joined control */
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__phone { width: 100%; min-width: 0; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__phone .iti { width: 100%; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__phone .iti input[type="tel"] { padding-inline-start: 1rem; }
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__phone select {
  min-height: 54px; border-radius: 14px; border: 1.5px solid #dde4ee; background: #eef2f8; font-size: .95rem; color: #16325c;
}
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__iran-code {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 .9rem;
  background: #eef2f8; border: 1.5px solid #dde4ee; border-radius: 14px; font-weight: 800; color: #16325c;
}
/* main button */
.auth-modal .auth-modal__dialog--mydiako .auth-modal__submit {
  width: 100%; min-height: 56px; margin-top: .35rem; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #f58a3c 0%, #e8650f 100%);
  color: #fff; font-size: 1.05rem; font-weight: 900; letter-spacing: .01em;
  box-shadow: 0 16px 30px -14px rgba(232, 101, 15, .75), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.auth-modal .auth-modal__dialog--mydiako .auth-modal__submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__submit:active { transform: translateY(0); }
/* region choice cards */
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__choice {
  min-height: 84px; border-radius: 18px; background: #fff; border: 1.5px solid #e3e8f0;
  box-shadow: 0 10px 24px -20px rgba(15, 27, 45, .5);
}
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__choice:hover {
  border-color: #f26a1b; background: #fffaf6; box-shadow: 0 14px 28px -18px rgba(242, 106, 27, .45);
}
/* back + links */
.auth-modal .auth-modal__dialog--mydiako .auth-modal__back,
.auth-modal .auth-modal__dialog--mydiako .auth-modal__link-btn { color: #16325c; font-weight: 800; }
.auth-modal .auth-modal__dialog--mydiako .auth-modal__field-error:not(:empty) {
  display: block; padding: .5rem .75rem; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: .84rem;
}
@media (max-width: 480px) {
  .auth-modal .auth-modal__dialog--mydiako { padding: 1.35rem 1.1rem 1.1rem; border-radius: 24px; }
  .auth-modal .auth-modal__dialog--mydiako .auth-modal__head h2,
  .auth-modal .auth-modal__dialog--mydiako .auth-modal__head h3 { font-size: 1.25rem; }
}
.auth-modal .auth-modal__dialog--mydiako .mydiako-auth__phone:not(.is-iti) { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: .5rem; }
