/* Etminan Tel — mobile login / sign-up */
.et-flow--login .woocommerce { display: block !important; }
.et-flow--login .et-content, .et-flow--login .woocommerce-MyAccount-content { background: none; border: 0; padding: 0; }
.et-auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: 10px auto 30px; border-radius: 36px; overflow: hidden; background: #fff; border: 1px solid #fff; box-shadow: 0 30px 70px rgba(74, 47, 184, .14); }
.et-auth__side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 34px 32px; background: linear-gradient(155deg, #8B6CFF 0%, #6A4BE0 55%, #E5486E 130%); color: #fff; min-height: 520px; }
.et-auth__bub { position: absolute; left: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.et-auth__bub::after { content: ""; position: absolute; left: 190px; top: 220px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.et-auth__mascot { position: absolute; top: 40px; right: 50%; transform: translateX(50%); width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(20, 10, 60, .35)); animation: et-auth-float 4.5s ease-in-out infinite; }
@keyframes et-auth-float { 50% { transform: translateX(50%) translateY(-10px) rotate(-3deg); } }
.et-auth__side > b { position: relative; font-size: 21px; font-weight: 900; }
.et-auth__side ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.et-auth__side li { display: flex; align-items: center; gap: 10px; }
.et-auth__side li .et-ico { width: 26px; height: 26px; padding: 5px; border-radius: 9px; background: rgba(255, 255, 255, .2); flex-shrink: 0; }
.et-auth__main { position: relative; padding: 36px 40px 30px; display: flex; flex-direction: column; justify-content: center; min-height: 520px; }
.et-auth__logo { margin-bottom: 18px; }
.et-auth__logo img { height: 44px; width: auto; }
.et-auth__step { display: flex; flex-direction: column; gap: 14px; animation: et-auth-in .35s var(--et-ease); }
.et-auth__step[hidden] { display: none; }
@keyframes et-auth-in { from { opacity: 0; transform: translateX(-14px); } }
.et-auth h1 { margin: 0; font-size: 23px; font-weight: 900; }
.et-auth__sub { margin: -6px 0 6px; color: var(--et-muted); font-size: 13.5px; line-height: 2; }
.et-auth__sub b { color: var(--et-ink); }
.et-auth__field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--et-ink-2); }
.et-auth__field small { font-weight: 500; color: var(--et-muted-2); }
.et-auth .et-auth__in { display: flex !important; flex-wrap: nowrap !important; flex-direction: row; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 8px; border-radius: 18px; border: 1.5px solid var(--et-line-2); background: var(--et-soft-2); color: var(--et-muted-2); box-sizing: border-box; transition: border-color .2s, background .2s, box-shadow .2s; }
.et-auth .et-auth__in:focus-within { border-color: var(--et-violet); background: #fff; box-shadow: 0 0 0 4px var(--et-violet-soft); color: var(--et-violet); }
.et-auth .et-auth__ico { display: grid; place-items: center; flex: 0 0 auto; width: 22px; }
.et-auth .et-auth__in svg { display: block; margin: 0; }
/* plugins style input[type=password] etc. globally — none of that may leak in here */
.et-auth .et-auth__in input, .et-auth .et-auth__in input[type="password"], .et-auth .et-auth__in input[type="text"], .et-auth .et-auth__in input[type="tel"] { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0 4px; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; outline: 0; -webkit-appearance: none; appearance: none; font: inherit; font-size: 16px; font-weight: 800; color: var(--et-ink); letter-spacing: .5px; }
.et-auth .et-auth__in input::placeholder { color: var(--et-muted-2); font-weight: 500; letter-spacing: 0; font-size: 13.5px; }
.et-auth .et-auth__field--phone input { font-size: 19px; letter-spacing: 1.5px; text-align: left; }
.et-auth .et-auth__field--phone input::placeholder { font-size: 16px; letter-spacing: 1px; }
.et-auth .et-auth__eye { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--et-muted-2); cursor: pointer; transition: background .2s, color .2s; }
.et-auth .et-auth__eye:hover { background: var(--et-soft); color: var(--et-ink); }
.et-auth__eye .is-hide, .et-auth__eye[aria-pressed="true"] .is-show { display: none; }
.et-auth__eye[aria-pressed="true"] .is-hide { display: grid; }
.et-auth__or { display: flex; align-items: center; gap: 12px; margin: 2px 0 -2px; color: var(--et-muted-2); font-size: 12px; }
.et-auth__or::before, .et-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--et-line-2); }
.et-auth__alt { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 1.5px solid var(--et-line-2); border-radius: 16px; background: #fff; color: var(--et-ink-2); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s; }
.et-auth__alt:hover { border-color: var(--et-violet); background: var(--et-violet-soft); color: var(--et-violet-d); }
.et-auth__field[hidden], .et-auth__sub[hidden] { display: none; }
.et-auth__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.et-auth__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; margin-top: 4px; border: 0; border-radius: 18px; background: var(--et-grad-red); color: #fff; font: inherit; font-size: 15.5px; font-weight: 900; cursor: pointer; box-shadow: 0 14px 30px rgba(229, 50, 80, .3); transition: transform .2s, box-shadow .2s, opacity .2s; }
.et-auth__btn:hover { transform: translateY(-2px); }
.et-auth__btn:disabled { opacity: .6; cursor: progress; transform: none; }
.et-auth__btn.is-busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-start: 8px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: et-auth-spin .7s linear infinite; }
@keyframes et-auth-spin { to { transform: rotate(360deg); } }
.et-auth__terms { margin: 4px 0 0; font-size: 11.5px; color: var(--et-muted-2); text-align: center; }
.et-auth__terms a { color: var(--et-violet-d); font-weight: 700; }
.et-auth__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 12px; background: var(--et-soft); color: var(--et-ink-2); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.et-auth__back .et-ico { transform: scaleX(-1); }
.et-auth__otp { display: flex; justify-content: center; gap: 10px; }
.et-auth__otp input { width: 56px; height: 62px; border-radius: 18px; border: 1.5px solid var(--et-line-2); background: var(--et-soft-2); text-align: center; font: inherit; font-size: 24px; font-weight: 900; color: var(--et-ink); outline: 0; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.et-auth__otp input:focus { border-color: var(--et-violet); background: #fff; box-shadow: 0 0 0 4px var(--et-violet-soft); transform: translateY(-2px); }
.et-auth__otp input.is-filled { border-color: rgba(123, 92, 240, .5); background: #fff; }
.et-auth__otp.is-bad input { border-color: var(--et-red); animation: et-auth-shake .4s; }
@keyframes et-auth-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.et-auth__dev { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(245, 158, 11, .14); color: #8A5A00; font-size: 12px; text-align: center; }
.et-auth__row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.et-auth__link { border: 0; background: none; padding: 6px 0; color: var(--et-violet-d); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.et-auth__link:disabled { color: var(--et-muted-2); cursor: default; }
.et-auth__link[hidden] { display: none; }
.et-auth__msg { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--et-red-soft); color: var(--et-red-d); font-size: 13px; font-weight: 700; }
.et-auth__msg.is-ok { background: rgba(34, 181, 115, .12); color: #127A4C; }
.et-auth__msg[hidden] { display: none; }
@media (max-width: 860px) {
  .et-auth { grid-template-columns: minmax(0, 1fr); border-radius: 28px; margin-top: 0; }
  .et-auth__side { min-height: 0; padding: 22px 22px 18px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .et-auth__side ul, .et-auth__bub::after { display: none; }
  .et-auth__mascot { position: static; transform: none; width: 64px; height: 64px; animation: none; }
  .et-auth__side > b { font-size: 16px; }
  .et-auth__main { min-height: 0; padding: 22px 18px 24px; }
  .et-auth__logo { display: none; }
  .et-auth__otp { gap: 7px; }
  .et-auth__otp input { width: 48px; height: 56px; font-size: 21px; border-radius: 15px; }
}

/* =========================================================
   Popup (every page, guests): header «ورود» → this sheet
   ========================================================= */
.et-authm { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 20px; }
.et-authm[hidden] { display: none; }
.et-authm__scrim { position: absolute; inset: 0; background: rgba(22, 18, 44, .38); -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%); opacity: 0; transition: opacity .22s; }
.et-authm__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 30px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s, transform .3s var(--et-ease, ease); scrollbar-width: none; }
.et-authm__box::-webkit-scrollbar { display: none; }
.et-authm.is-open .et-authm__scrim { opacity: 1; }
.et-authm.is-open .et-authm__box { opacity: 1; transform: none; }
.et-auth--modal { display: block; max-width: none; margin: 0; border-radius: 30px; border: 0; box-shadow: 0 40px 90px rgba(30, 20, 80, .3); }
.et-auth__mh { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px; background: linear-gradient(120deg, #F4F0FF, #FFF1F4); border-bottom: 1px solid var(--et-line); }
.et-auth__mh::before { content: ""; position: absolute; right: 0; top: 18px; bottom: 16px; width: 4px; border-radius: 4px 0 0 4px; background: linear-gradient(var(--et-violet), var(--et-red)); }
.et-auth__mh img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(74, 47, 184, .25)); }
.et-auth__mh > span { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.6; }
.et-auth__mh b { font-size: 17px; font-weight: 900; color: var(--et-ink); }
.et-auth__mh small { font-size: 12px; color: var(--et-muted); }
.et-auth .et-auth__x { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .85); color: var(--et-ink-2); cursor: pointer; transition: background .2s, color .2s, transform .3s; }
.et-auth .et-auth__x:hover { background: var(--et-ink); color: #fff; transform: rotate(90deg); }
.et-auth--modal .et-auth__main { min-height: 0; padding: 18px 20px 20px; }
.et-auth--modal .et-auth__step { gap: 12px; }
.et-auth--modal h1 { font-size: 18px; }
.et-auth__sub--m { margin: 0 0 2px; font-size: 13px; }
.et-auth--modal .et-auth__otp input { width: 50px; height: 56px; font-size: 22px; border-radius: 15px; }
.et-auth--modal .et-auth__msg { margin-top: 10px; }
html.et-lock { overflow: hidden; }
@media (max-width: 600px) {
  .et-authm { place-items: end center; padding: 0; }
  .et-authm__box { width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; transform: translateY(40px); }
  .et-auth--modal { border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .et-auth__mh { padding: 14px 16px 12px; }
  .et-auth__mh::after { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(30, 28, 42, .15); }
  .et-auth--modal .et-auth__main { padding: 14px 16px 18px; }
  .et-auth--modal .et-auth__otp { gap: 6px; }
  .et-auth--modal .et-auth__otp input { width: 44px; height: 52px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .et-authm__box, .et-authm__scrim { transition: none; } }
/* WooCommerce's script turns any span around a password field into its own «.password-input» (column layout + its own eye) — not in this form */
.et-auth .et-auth__in.password-input { display: flex !important; flex-direction: row !important; position: static; }
.et-auth .et-auth__in .show-password-input { display: none !important; }
/* browser autofill paints its own light-blue box over filled fields — keep the field's own look */
.et-auth .et-auth__in input:-webkit-autofill, .et-auth .et-auth__in input:-webkit-autofill:hover, .et-auth .et-auth__in input:-webkit-autofill:focus, .et-auth .et-auth__in input:autofill {
  -webkit-text-fill-color: var(--et-ink); caret-color: var(--et-ink);
  -webkit-box-shadow: 0 0 0 100px transparent inset !important; box-shadow: none !important;
  background-color: transparent !important; background-clip: text; transition: background-color 9999s ease-out 0s;
}
.et-auth .et-auth__in input:focus, .et-auth .et-auth__in input:focus-visible { outline: 0 !important; box-shadow: none !important; }
