/* The sign-in sheet (assets/js/signin.js). Builds on .checkout-modal / .checkout-panel. */

.si-panel { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow-y: auto; }
.si-panel h3 { font-family: var(--font-display); font-size: 22px; padding-right: 36px; }
.si-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.si-x:hover { background: rgba(255, 255, 255, 0.12); }
.si-next {
  margin: 0 0 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 213, 74, 0.1);
  border: 1px solid rgba(255, 213, 74, 0.35);
  color: #ffd54a;
  font-weight: 700;
  font-size: 14px;
}
.si-hint { margin: 6px 0 14px; font-size: 14px; }

.si-methods { display: grid; gap: 10px; }
.si-method {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.si-method:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.si-method:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.si-method[disabled] { opacity: 0.7; cursor: progress; }
.si-ico {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  flex: none;
}
.si-g { background: #fff; color: #4285f4; font-weight: 800; font-family: Arial, sans-serif; }
.si-last {
  display: none;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(38, 198, 218, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.si-method.is-last { border-color: rgba(38, 198, 218, 0.55); }
.si-method.is-last .si-last { display: inline-block; }
.si-method.is-blocked { opacity: 0.55; }
.si-new { margin: 14px 0 0; }

.si-inapp {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.4);
  font-size: 14px;
  color: #ffd9e0;
}
.si-inapp p { margin: 0 0 10px; }
.si-row { display: flex; gap: 8px; flex-wrap: wrap; }
.si-small { padding: 8px 12px; font-size: 13px; }

.zt-signin select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
}
.zt-signin select option { color: #141C25; }
.si-preview { min-height: 1.4em; margin: 8px 0 0; }
.si-sent { margin: 0 0 4px; color: #E8EEF2; }
.si-code { letter-spacing: 0.5em; font-size: 22px !important; text-align: center; font-weight: 800; }
.si-pw { position: relative; }
.si-pw input { padding-right: 64px !important; }
.si-show { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.si-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.si-link[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.si-center { text-align: center; }
.si-big { font-size: 44px; margin: 6px 0 0; }
.zt-signin .checkout-actions { margin-top: 16px; }

/* the account check in the checkout sheet */
.checkout-warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 213, 74, 0.1);
  border: 1px solid rgba(255, 213, 74, 0.4);
  color: #ffe9a8;
  font-size: 13.5px;
}
.checkout-ok {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #b9f5d6;
  font-size: 13.5px;
}

@media (max-width: 480px) {
  .zt-signin { padding: 0; place-items: end center; }
  .si-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
}
