/* Becomy Studio — merchant auth (sign in) — daylight system */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ba-paper: #fbfcf7;
  --ba-mist: #f1f3ea;
  --ba-panel: #ffffff;
  --ba-ink: #121511;
  --ba-muted: #687067;
  --ba-acid: #d9ff43;
  --ba-acid-ink: #687a00;
  --ba-line: #dde1d8;
  --ba-danger: #b42318;
  --ba-headline: "Space Grotesk", system-ui, sans-serif;
  --ba-body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.ba-body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--ba-ink);
  font-family: var(--ba-body);
  background:
    radial-gradient(70% 55% at 100% 10%, rgba(185, 214, 255, 0.35), transparent 50%),
    linear-gradient(180deg, var(--ba-paper) 0%, var(--ba-mist) 100%);
  -webkit-font-smoothing: antialiased;
}
.ba-body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: -26vh;
  left: -16vw;
  width: clamp(520px, 72vw, 920px);
  height: clamp(360px, 65vh, 680px);
  pointer-events: none;
  background: radial-gradient(ellipse at 45% 45%, rgba(217, 255, 67, 0.32), rgba(217, 255, 67, 0.15) 32%, transparent 70%);
  animation: ba-glow-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ba-glow-drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(14vw, 6vh, 0); }
  100% { transform: translate3d(6vw, 12vh, 0); }
}

.ba-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px 36px;
}

.ba-frame {
  width: min(440px, 100%);
  display: grid;
  gap: 22px;
}
.ba-frame--wide { width: min(520px, 100%); }

.ba-auth-panel {
  overflow: hidden;
  background: var(--ba-panel);
  border: 1px solid var(--ba-line);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(18, 21, 17, 0.09);
  animation: ba-in .48s cubic-bezier(.22, 1, .36, 1) both;
}

.ba-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 94px;
  padding: 20px 26px 18px;
  border-bottom: 1px solid var(--ba-line);
  background:
    radial-gradient(105% 180% at 0% 0%, rgba(217, 255, 67, 0.34), transparent 64%),
    linear-gradient(115deg, #fbfcf7 0%, #f5f8ed 58%, #f2f7fb 100%);
  font-family: var(--ba-headline);
  text-decoration: none;
  color: var(--ba-ink);
}
.ba-brand::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -1px;
  left: 26px;
  height: 3px;
  background: var(--ba-acid);
}
.ba-brand-mark { display: block; width: 44px; height: 44px; color: var(--ba-ink); }
.ba-brand-word { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; }
.ba-brand-master { font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.ba-brand-product { font-size: 20px; font-weight: 800; letter-spacing: .035em; line-height: .96; }

.ba-card {
  padding: 26px 26px 24px;
}
.ba-card--sign-in {
  padding-top: 30px;
}
.ba-card--sign-in .ba-title {
  margin-bottom: 24px;
}

.ba-kicker {
  margin: 0 0 8px;
  color: var(--ba-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-title {
  margin: 0 0 8px;
  font-family: var(--ba-headline);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ba-lead {
  margin: 0 0 22px;
  color: var(--ba-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.ba-lead a {
  color: var(--ba-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ba-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: rgba(180, 35, 24, 0.06);
  color: var(--ba-danger);
  font-size: 0.92rem;
}
.ba-notice {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ba-mist);
  color: var(--ba-ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ba-field { margin-bottom: 14px; }
.ba-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 650;
}

.ba-field input[type="text"],
.ba-field input[type="email"],
.ba-field input[type="password"],
.ba-field input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cdd3c8;
  border-radius: 14px;
  background: #fff;
  color: var(--ba-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ba-field input.is-valid,
.ba-field input.is-complete {
  border-color: #819c00;
  box-shadow: 0 0 0 2px rgba(217, 255, 67, 0.18);
}
.ba-field input.is-filled {
  border-color: #87928a;
  box-shadow: 0 0 0 2px rgba(104, 112, 103, 0.1);
}
.ba-field input.is-invalid {
  border-color: var(--ba-danger);
}
.ba-field input:focus {
  outline: none;
  border-color: #91aa15;
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.35);
}
.ba-field input.is-valid:focus,
.ba-field input.is-complete:focus {
  border-color: #819c00;
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.34);
}
.ba-field input.is-invalid:focus {
  border-color: var(--ba-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}
.ba-field input::placeholder { color: #9aa396; }
.ba-login-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.ba-login-row > input { flex: 1 1 auto; min-width: 0; }
.ba-dial {
  position: relative;
  flex: 0 0 132px;
  min-width: 0;
}
.ba-dial[hidden] { display: none; }
.ba-dial::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.ba-dial select {
  width: 100%;
  height: 100%;
  min-height: 50px;
  padding: 12px 28px 12px 12px;
  appearance: none;
  border: 1px solid #cdd3c8;
  border-radius: 14px;
  background: #fff;
  color: var(--ba-ink);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ba-dial select:focus {
  outline: none;
  border-color: #91aa15;
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.35);
}
.ba-field .ba-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ba-hint {
  margin: 8px 0 0;
  color: var(--ba-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.ba-hint.is-error { color: var(--ba-danger); }

.ba-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ba-btn:active:not(:disabled) { transform: scale(0.985); }
.ba-btn-icon {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  transition: transform .2s ease;
}
.ba-btn:hover:not(:disabled) .ba-btn-icon { transform: translateX(2px); }
.ba-btn-secondary:hover:not(:disabled) .ba-btn-icon { transform: rotate(-25deg); }
.ba-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.ba-btn-primary {
  color: var(--ba-ink);
  background: var(--ba-acid);
  box-shadow: 0 8px 22px rgba(126, 151, 0, 0.13);
}
.ba-btn-primary:hover:not(:disabled) {
  background: #e4ff76;
  box-shadow: 0 10px 30px rgba(126, 151, 0, 0.2);
}
.ba-btn-secondary {
  color: var(--ba-ink);
  background: #fff;
  border-color: var(--ba-line);
}
.ba-btn-secondary:hover:not(:disabled) {
  background: var(--ba-mist);
}

.ba-otp-stack {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition:
    grid-template-rows .38s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease;
}
.ba-otp-stack-inner {
  min-height: 0;
  overflow: hidden;
}
.ba-shell:has(.ba-details[open]:not(.is-concealing)) .ba-otp-stack {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.ba-fold {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  transition:
    grid-template-rows .38s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease;
}
.ba-fold.is-out {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.ba-fold-inner {
  overflow: hidden;
  min-height: 0;
}
.ba-fold[data-admin-otp-login-target="sendPane"] .ba-actions {
  margin-top: 0;
}
.ba-fold[data-admin-otp-login-target="sendPane"] .ba-fold-inner {
  padding-top: 18px;
}
.ba-code-pane .ba-fold-inner > .ba-field {
  margin-top: 18px;
}
.ba-fold--instant,
.ba-fold--instant * {
  transition: none !important;
}

@keyframes ba-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ba-password-reveal {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows .38s cubic-bezier(.22, 1, .36, 1),
    opacity .26s ease;
}
.ba-password-reveal.is-out {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.ba-password-reveal-inner {
  min-height: 0;
  overflow: hidden;
}
.ba-password-reveal--instant { transition: none; }
.ba-details {
  margin-top: 16px;
  border-top: 1px solid var(--ba-line);
  padding-top: 12px;
  interpolate-size: allow-keywords;
  transition: margin-top .3s ease, padding-top .3s ease, border-color .3s ease;
}
.ba-details.is-email-mode {
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
}
.ba-details.is-email-mode summary {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.ba-details.is-email-mode .ba-details-body { padding-top: 0; }
.ba-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--ba-muted);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
  max-height: 28px;
  overflow: hidden;
  opacity: 1;
  transition: color .22s ease, max-height .3s ease, opacity .2s ease;
}
.ba-details summary::-webkit-details-marker { display: none; }
.ba-details summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  opacity: 0.7;
}
.ba-details[open] summary { color: var(--ba-ink); }
.ba-details[open] summary::after {
  margin-top: 2px;
  transform: rotate(225deg);
}
.ba-details::details-content {
  display: block;
  overflow: clip;
  height: 0;
  opacity: 0;
  transition:
    height .38s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease;
}
.ba-details[open]::details-content {
  height: auto;
  opacity: 1;
}
.ba-details-body {
  padding-top: 12px;
  transition: padding-top .3s ease;
}
.ba-help-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--ba-muted);
  font-size: 0.88rem;
  text-underline-offset: 3px;
}
.ba-signup-link {
  margin: 22px 0 0;
  color: var(--ba-muted);
  font-size: 0.88rem;
}
.ba-signup-link a {
  color: var(--ba-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
@supports not (interpolate-size: allow-keywords) {
  .ba-details[open] .ba-details-body {
    animation: ba-in .36s cubic-bezier(.22, 1, .36, 1) both;
  }
}

.ba-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  color: var(--ba-muted);
  font-size: 0.8rem;
}
.ba-foot a { color: inherit; text-decoration: none; }
.ba-foot a:hover { text-decoration: underline; }

.ba-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 255, 67, 0.22);
  border: 1px solid rgba(145, 170, 21, 0.35);
  color: var(--ba-ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.ba-store-chip--inline { margin: 6px 0 0; }

.ba-store-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ba-store-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--ba-line);
  background: #fff;
  color: var(--ba-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
  animation: ba-in .42s cubic-bezier(.22, 1, .36, 1) both;
}
.ba-store-list li:nth-child(2) .ba-store-pick { animation-delay: .06s; }
.ba-store-list li:nth-child(3) .ba-store-pick { animation-delay: .12s; }
.ba-store-list li:nth-child(n+4) .ba-store-pick { animation-delay: .18s; }
.ba-store-pick:hover,
.ba-store-pick:focus-visible {
  border-color: #91aa15;
  background: var(--ba-mist);
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.35);
  outline: none;
}
.ba-store-pick-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ba-store-pick-copy strong {
  font-family: var(--ba-headline);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.ba-store-pick-cta {
  flex: 0 0 auto;
  color: var(--ba-acid-ink);
  font-size: 0.88rem;
  font-weight: 700;
}
@media (max-width: 520px) {
  .ba-shell { padding: 18px 12px 28px; }
  .ba-auth-panel { border-radius: 20px; }
  .ba-brand {
    min-height: 82px;
    padding: 17px 20px 15px;
  }
  .ba-brand::after { right: 20px; left: 20px; }
  .ba-brand-mark { width: 40px; height: 40px; }
  .ba-card { padding: 23px 20px 21px; }
  .ba-store-pick {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .ba-card--sign-in { padding-top: 25px; }
  .ba-dial { flex-basis: 112px; }
  .ba-store-pick-cta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-body::before {
    animation: none;
    will-change: auto;
  }
  .ba-auth-panel,
  .ba-store-pick,
  .ba-details[open] .ba-details-body { animation: none; }
  .ba-fold,
  .ba-otp-stack,
  .ba-password-reveal,
  .ba-details,
  .ba-details-body,
  .ba-details::details-content,
  .ba-details summary,
  .ba-details summary::after,
  .ba-btn,
  .ba-btn-icon,
  .ba-store-pick {
    transition: none;
  }
  .ba-field input,
  .ba-dial select {
    transition: none;
  }
}
