/*
 * Sign in / sign up pages (store/layouts/auth): the brand panel, the form
 * card, the +966 phone field, the password eye, the code boxes and the
 * gender chips.
 */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--s-6); align-items: stretch; padding-block: var(--s-6) var(--s-8); }
@media (max-width: 991px) { .auth { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* ---- Brand panel ----------------------------------------------------------- */
.auth__side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
  padding: var(--s-8); border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--c-accent) 55%, transparent), transparent 45%),
              linear-gradient(150deg, var(--c-primary), var(--c-secondary));
}
@media (max-width: 991px) { .auth__side { display: none; } }
.auth__logo { width: 64px; height: 64px; padding: 8px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md); }
.auth__side h2 { font-size: var(--fs-2xl); line-height: 1.4; max-width: 18ch; }
.auth__side p { opacity: .9; max-width: 42ch; }
.auth__perks { display: grid; gap: var(--s-3); margin-block-start: var(--s-4); padding: 0; list-style: none; }
.auth__perks li { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.auth__perks i { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: var(--r-md); background: rgba(255, 255, 255, .16); font-size: 17px; }

/* Floating product icons, decoration only. */
.auth__bubble { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); animation: float 5s ease-in-out infinite; }
.auth__bubble--1 { width: 92px; height: 92px; inset-block-start: 8%; inset-inline-end: 8%; font-size: 34px; }
.auth__bubble--2 { width: 64px; height: 64px; inset-block-end: 12%; inset-inline-end: 16%; font-size: 24px; animation-delay: -1.6s; }
.auth__bubble--3 { width: 50px; height: 50px; inset-block-end: 34%; inset-inline-end: 4%; font-size: 18px; animation-delay: -3s; }

/* ---- Card ------------------------------------------------------------------ */
.auth__card { padding: var(--s-8) var(--s-6); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
@media (max-width: 575px) { .auth__card { padding: var(--s-6) var(--s-4); } }
.auth__head { margin-block-end: var(--s-6); }
.auth__head h1 { font-size: var(--fs-2xl); }
.auth__head p { color: var(--c-muted); margin-block-start: var(--s-1); }
.auth__head--center, .auth__center { text-align: center; }
.auth__icon {
  width: 64px; height: 64px; margin: 0 auto var(--s-3); display: grid; place-items: center; border-radius: 50%;
  background: var(--c-primary-light); color: var(--c-primary); font-size: 26px; animation: pop 500ms var(--ease-spring);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.auth__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); }
@media (max-width: 575px) { .auth__grid { grid-template-columns: minmax(0, 1fr); } }
.auth__row { display: flex; justify-content: flex-end; margin-block: calc(var(--s-2) * -1) var(--s-4); }
.auth__link { border: 0; padding: 0; background: none; color: var(--c-secondary); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.auth__link:hover { text-decoration: underline; }
.auth__link[disabled] { color: var(--c-muted); cursor: default; text-decoration: none; }
.auth__link--muted { color: var(--c-muted); font-weight: 500; }
.auth__switch { margin-block-start: var(--s-5); text-align: center; color: var(--c-muted); font-size: var(--fs-sm); }
.auth__switch a { color: var(--c-secondary); font-weight: 700; }
.auth__resend { display: flex; justify-content: center; gap: var(--s-5); margin-block-start: var(--s-5); }
.auth .check { margin-block: var(--s-1) var(--s-5); align-items: flex-start; line-height: 1.6; }
.auth .check input { width: 18px; height: 18px; margin-block-start: 3px; flex: none; accent-color: var(--c-primary); }
.auth .check a { color: var(--c-secondary); font-weight: 700; }

/* ---- Code boxes ----------------------------------------------------------------- */
.otp { display: flex; justify-content: center; gap: var(--s-2); margin-block-end: var(--s-5); }
.otp__box {
  width: 56px; height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--c-border); background: var(--c-surface);
  text-align: center; font-size: 26px; font-weight: 800; caret-color: var(--c-primary);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.otp__box:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 4px var(--c-primary-light); transform: translateY(-2px); }
.otp__box.is-filled { border-color: var(--c-primary); background: #fff; }
.otp.is-shaking { animation: shake 360ms ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 380px) { .otp__box { width: 48px; height: 56px; } }
.auth__phone { display: inline-block; direction: ltr; unicode-bidi: isolate; font-weight: 700; color: var(--c-text); }
