/* JAW.Ali online account login: centered mobile-first brand and simple email/password access. */
.jao-wrap .jao-auth-page {
  width: min(100%, 520px);
  margin: 8px auto 26px;
  display: grid;
  gap: 0;
  box-sizing: border-box;
}

.jao-wrap .jao-auth-brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px 48px 15px;
  color: #512f43;
  text-align: center;
}
.jao-wrap .jao-auth-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 21px;
  background: #fff0f6;
  box-shadow: 0 7px 18px #ca3e7b22, inset 0 1px 0 #ffffff;
}
.jao-wrap .jao-auth-brand > span { display: grid; justify-items: center; gap: 2px; }
.jao-wrap .jao-auth-brand > span > b { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; }
.jao-wrap .jao-auth-brand > span > small {
  color: #b52e67;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.jao-wrap .jao-auth-brand-note { margin: 3px 0 0; color: #8c6c7d; font-size: .7rem; font-weight: 650; }
.jao-wrap .jao-auth-back-top {
  position: absolute;
  inset-block-start: 17px;
  inset-inline-start: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #f0d4e0;
  border-radius: 12px;
  background: #fff7fa;
  color: #8e2858;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.jao-wrap .jao-auth {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 4.5vw, 27px);
  box-sizing: border-box;
  border: 1px solid #f0d2df;
  border-radius: 20px;
  background: linear-gradient(155deg, #ffffff 10%, #fffafd 100%);
  box-shadow: 0 14px 34px #9f315814, 0 2px 6px #9f31580a, inset 0 1px 0 #ffffff;
  color: #352b32;
}
.jao-wrap .jao-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 2px solid #f2e6ec;
  background: transparent;
}
.jao-wrap .jao-auth-tabs button {
  min-height: 48px;
  padding: 9px 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  background: transparent;
  color: #776675;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}
.jao-wrap .jao-auth-tabs button[aria-selected="true"] {
  border-bottom-color: #cf3677;
  background: transparent;
  color: #b52863;
  box-shadow: none;
}
.jao-wrap .jao-auth-heading { margin: 0 0 16px; text-align: center; }
.jao-wrap .jao-auth-heading h2 {
  margin: 3px 0 7px;
  color: #3d2c37;
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.jao-wrap .jao-auth-heading > p:last-child { margin: 0; color: #786571; font-size: .9rem; line-height: 1.45; }
.jao-wrap .jao-auth-eyebrow { margin: 0; color: #c0316c; font-size: .64rem; font-weight: 850; letter-spacing: .12em; }
.jao-wrap .jao-auth-back:not(.jao-auth-back-top) {
  display: block;
  width: 100%;
  margin: 0 0 13px;
  padding: 9px 11px;
  border: 1px solid #f0d4e0;
  border-radius: 11px;
  background: #fff7fa;
  color: #8e2858;
  text-align: left;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.jao-wrap .jao-auth-verification {
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid #f2d0df;
  border-radius: 12px;
  background: #fff2f7;
  color: #8c2855;
  font-size: .82rem;
  line-height: 1.45;
}
.jao-wrap .jao-auth form { display: grid; gap: 13px; margin: 0; }
.jao-wrap .jao-auth form > label { display: grid; gap: 6px; color: #4c3a46; font-size: .83rem; font-weight: 750; }
.jao-wrap .jao-auth form input:not([type="checkbox"], [type="hidden"], [type="file"]),
.jao-wrap .jao-auth form select,
.jao-wrap .jao-auth form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  border: 1px solid #e9ccd9;
  border-radius: 12px;
  background: #ffffff;
  color: #352b32;
  font: inherit;
  font-size: .94rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.jao-wrap .jao-auth form input:focus,
.jao-wrap .jao-auth form select:focus,
.jao-wrap .jao-auth form textarea:focus { border-color: #cf3677; box-shadow: 0 0 0 3px #cf36771c; }
.jao-wrap .jao-auth form input::placeholder { color: #a998a2; }
.jao-wrap .jao-auth form .jao-phone-fields { display: grid; grid-template-columns: minmax(112px, .8fr) minmax(0, 1.2fr); gap: 7px; }
.jao-wrap .jao-auth form .jao-check { display: flex; align-items: flex-start; gap: 8px; font-size: .77rem; font-weight: 600; }
.jao-wrap .jao-auth form .jao-check input { margin: 3px 0 0; accent-color: #c63070; }
.jao-wrap .jao-auth form button.jao-primary,
.jao-wrap .jao-auth form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #d64180, #b82767);
  box-shadow: 0 7px 16px #bd2f6c24;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.jao-wrap .jao-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin: 13px 0 0; }
.jao-wrap .jao-auth-links button,
.jao-wrap .jao-auth > button:not(.jao-auth-back) { padding: 3px 0; border: 0; background: transparent; color: #ad2d65; font: inherit; font-size: .8rem; font-weight: 750; text-align: left; cursor: pointer; }
.jao-wrap .jao-auth-footnote { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #f2e3ea; color: #806d78; font-size: .73rem; line-height: 1.45; }
.jao-wrap .jao-auth > p:not(.jao-auth-heading p):not(.jao-auth-verification):not(.jao-auth-footnote) { color: #766672; font-size: .86rem; line-height: 1.5; }
.jao-wrap .jao-auth > form + form { margin-top: 15px; padding-top: 14px; border-top: 1px solid #f2e3ea; }
.jao-wrap .jao-auth small { color: #806d78; font-size: .74rem; line-height: 1.4; }
.jao-wrap .jao-auth :focus-visible,
.jao-wrap .jao-auth-brand :focus-visible { outline: 3px solid #cf367766; outline-offset: 3px; }

@media (max-width: 520px) {
  .jao-wrap .jao-auth-page { margin: 4px auto 20px; }
  .jao-wrap .jao-auth-brand { padding: 14px 45px 12px; }
  .jao-wrap .jao-auth-brand img { width: 62px; height: 62px; border-radius: 19px; }
  .jao-wrap .jao-auth { border-radius: 18px; padding: 19px 16px; }
  .jao-wrap .jao-auth-tabs button { min-height: 45px; font-size: .84rem; }
  .jao-wrap .jao-auth form .jao-phone-fields { grid-template-columns: minmax(100px, .78fr) minmax(0, 1.22fr); }
}

:root[data-theme="dark"] .jao-wrap .jao-auth {
  border-color: #5a3b4b;
  background: linear-gradient(155deg, #30272e, #29232a);
  color: #f4e9ef;
}
:root[data-theme="dark"] .jao-wrap .jao-auth-heading h2,
:root[data-theme="dark"] .jao-wrap .jao-auth-brand { color: #f7eaf0; }
:root[data-theme="dark"] .jao-wrap .jao-auth-heading > p:last-child,
:root[data-theme="dark"] .jao-wrap .jao-auth-footnote,
:root[data-theme="dark"] .jao-wrap .jao-auth small,
:root[data-theme="dark"] .jao-wrap .jao-auth-brand-note { color: #c8abb9; }
:root[data-theme="dark"] .jao-wrap .jao-auth-brand > span > small,
:root[data-theme="dark"] .jao-wrap .jao-auth-eyebrow { color: #ff9cbe; }
:root[data-theme="dark"] .jao-wrap .jao-auth form > label { color: #eddde5; }
:root[data-theme="dark"] .jao-wrap .jao-auth form input:not([type="checkbox"], [type="hidden"], [type="file"]),
:root[data-theme="dark"] .jao-wrap .jao-auth form select,
:root[data-theme="dark"] .jao-wrap .jao-auth form textarea { border-color: #654455; background: #211c22; color: #f6ecf1; }
:root[data-theme="dark"] .jao-wrap .jao-auth-tabs { border-color: #563d49; }
:root[data-theme="dark"] .jao-wrap .jao-auth-tabs button[aria-selected="true"] { border-bottom-color: #ff83ad; color: #ff9cbe; }
:root[data-theme="dark"] .jao-wrap .jao-auth-verification { border-color: #664153; background: #472d3b; color: #ffd4e4; }
:root[data-theme="dark"] .jao-wrap .jao-auth-back { border-color: #614052; background: #392832; color: #ffc0d8; }
