@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap");

/* Enterprise merchant authentication surfaces (login, register, password reset). */
.ent-auth {
  --ea-ink: #0a1220;
  --ea-text: #121b2a;
  --ea-muted: #5b6676;
  --ea-line: #e2e6ed;
  --ea-line-strong: #c9d1de;
  --ea-danger: #b42318;
  --ea-success: #0f7b4f;
  --ea-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ea-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ea-accent: var(--color-primary, #1f5eff);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: var(--ea-text);
  font-family: var(--ea-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Brand rail ---------- */

.ent-auth__aside {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vh, 64px) clamp(28px, 4.2vw, 64px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  color: #fff;
  background-color: #04070d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(900px 600px at 84% -12%, rgba(32, 60, 108, 0.55), transparent 64%),
    linear-gradient(166deg, #04060b 0%, #070c16 40%, #0a1526 74%, #102138 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.ent-auth__rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ent-auth__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.ent-auth__brand img {
  display: block;
  max-height: 38px;
  max-width: min(190px, 100%);
  object-fit: contain;
}

.ent-auth__brand-text {
  font-family: var(--ea-display);
  font-size: 26px;
  line-height: 1;
  color: #fff;
}

.ent-auth__copy {
  max-width: 470px;
  margin: clamp(22px, 5vh, 44px) 0;
}

.ent-auth__statement {
  margin: 0;
  font-family: var(--ea-ui);
  font-size: clamp(30px, min(3.1vw, 4.4vh), 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f8fafc;
  text-wrap: balance;
}

.ent-auth__aside-text {
  max-width: 42ch;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

.ent-auth__list,
.ent-auth__steps {
  max-width: 470px;
  margin: clamp(20px, 4vh, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.ent-auth__list li,
.ent-auth__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(10px, 1.8vh, 15px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ent-auth__list li:last-child,
.ent-auth__steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ent-auth__list-icon,
.ent-auth__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.ent-auth__step-number {
  border-radius: 50%;
  font-family: var(--ea-display);
  font-size: 16px;
  line-height: 1;
}

.ent-auth__list-title {
  margin: 1px 0 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f4f6f9;
}

.ent-auth__list-text,
.ent-auth__step-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.ent-auth__step-text {
  align-self: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.ent-auth__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.52);
}

.ent-auth__seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ent-auth__seal svg {
  flex: none;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Form column ---------- */

.ent-auth__main {
  position: relative;
  display: flex;
  padding: clamp(66px, 6vw, 84px) clamp(24px, 6vw, 96px) calc(clamp(32px, 4vw, 56px) + 100px);
}

.ent-auth__top {
  position: absolute;
  top: clamp(22px, 3vw, 34px);
  inset-inline-end: clamp(22px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ent-auth__lang {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.ent-auth__lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ent-auth__lang-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ent-auth__lang-link.is-active,
.ent-auth__lang-link.is-active:hover {
  background: #f8fafc;
  color: var(--ea-ink);
}

.ent-auth__lang-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.ent-auth__utility {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  color: #2563eb;
  text-decoration: none;
}

.ent-auth__utility:hover,
.ent-auth__utility:focus-visible {
  color: #2563eb;
}

.ent-auth__utility:focus-visible {
  outline: 2px solid var(--ea-ink);
  outline-offset: 3px;
}

.ent-auth__panel {
  width: 100%;
  max-width: 404px;
  margin: auto;
}

.ent-auth--wide .ent-auth__panel {
  max-width: 476px;
}

.ent-auth__title {
  margin: 0;
  font-family: var(--ea-ui);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ea-text);
  text-wrap: balance;
}

.ent-auth__subtitle {
  max-width: 46ch;
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ea-muted);
}

.ent-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.ent-form__section {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.ent-form__section + .ent-form__section {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--ea-line);
}

.ent-form__section-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6a7688;
}

.ent-form__grid {
  display: grid;
  gap: 15px;
}

.ent-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

/* ---------- Fields ---------- */

.ent-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ent-field__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #38455c;
}

.ent-field__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ea-muted);
}

.ent-field__optional {
  font-weight: 400;
  color: #8a95a6;
}

.ent-field__error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ea-danger);
}

.ent-input-wrap {
  position: relative;
}

.ent-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--ea-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ea-text);
  font-family: var(--ea-ui);
  font-size: 14.5px;
  line-height: 1.2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ent-input::placeholder {
  color: #98a2b3;
}

.ent-input:hover {
  border-color: #aab4c4;
}

.ent-input:focus {
  outline: none;
  border-color: var(--ea-ink);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 31, 94, 255), 0.18);
}

.ent-input.is-invalid {
  border-color: var(--ea-danger);
}

.ent-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.ent-input--password {
  padding-inline-end: 46px;
}

.ent-input[readonly] {
  background: #f7f8fa;
  color: #4c586b;
}

.ent-password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7a8699;
  cursor: pointer;
}

.ent-password-toggle:hover {
  background: #f2f4f7;
  color: var(--ea-text);
}

.ent-password-toggle:focus-visible {
  outline: 2px solid var(--ea-ink);
  outline-offset: 1px;
}

/* ---------- Store domain ---------- */

.ent-domain {
  display: flex;
  align-items: stretch;
}

.ent-domain .ent-input {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  min-width: 0;
}

.ent-domain__suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ea-line-strong);
  border-inline-start: 0;
  border-start-end-radius: 6px;
  border-end-end-radius: 6px;
  background: #f7f8fa;
  color: var(--ea-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Validation + notices ---------- */

.ent-status {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ea-muted);
}

.ent-status.is-available,
.ent-status.is-match {
  color: var(--ea-success);
}

.ent-status.is-unavailable,
.ent-status.is-invalid,
.ent-status.is-mismatch {
  color: var(--ea-danger);
}

.ent-alert {
  display: none;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #f2c7c2;
  border-radius: 6px;
  background: #fdf3f2;
  color: #8f1d13;
  font-size: 13px;
  line-height: 1.5;
}

.ent-alert--visible {
  display: flex;
}

.ent-alert--success {
  border-color: #bfe3d2;
  background: #f2faf6;
  color: #0b5c3b;
}

.ent-alert svg {
  flex: none;
  margin-top: 1px;
}

/* ---------- Password strength ---------- */

.ent-strength {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.ent-strength__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.ent-strength__track span {
  height: 3px;
  border-radius: 999px;
  background: #e6eaf0;
}

.ent-strength[data-strength="1"] .ent-strength__track span:nth-child(1) {
  background: #dc2626;
}

.ent-strength[data-strength="2"] .ent-strength__track span:nth-child(-n + 2) {
  background: #f59e0b;
}

.ent-strength[data-strength="3"] .ent-strength__track span:nth-child(-n + 3) {
  background: #2563eb;
}

.ent-strength[data-strength="4"] .ent-strength__track span {
  background: #16a34a;
}

.ent-strength__label {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ea-muted);
}

.ent-strength[data-strength="4"] .ent-strength__label {
  color: var(--ea-success);
}

/* ---------- Actions ---------- */

.ent-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.ent-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #43506a;
  cursor: pointer;
  user-select: none;
}

.ent-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ea-ink);
  cursor: pointer;
}

.ent-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.ent-link:hover {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ent-link:focus-visible {
  outline: 2px solid var(--ea-ink);
  outline-offset: 2px;
}

.ent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ea-ink);
  color: #fff;
  font-family: var(--ea-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ent-btn:hover {
  background: #17233a;
  color: #fff;
}

.ent-btn:focus-visible {
  outline: 2px solid var(--ea-accent);
  outline-offset: 2px;
}

.ent-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ent-auth__switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ea-line);
  font-size: 13.5px;
  color: var(--ea-muted);
  text-align: center;
}

.ent-auth__note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7a8699;
  text-align: center;
}

/* ---------- Captcha ---------- */

.ent-auth .g-recaptcha {
  display: inline-block;
  max-width: 100%;
}

/* ---------- Responsive ---------- */

@media (min-width: 961px) and (max-height: 700px) {
  .ent-auth__list {
    display: none;
  }
}

@media (max-width: 960px) {
  .ent-auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .ent-auth__aside {
    position: static;
    height: auto;
    padding: 28px 26px 30px;
    background-size: 44px 44px, 44px 44px, auto, auto;
  }

  .ent-auth__copy {
    margin: 30px 0 0;
  }

  .ent-auth__statement {
    max-width: 20ch;
    font-size: 30px;
  }

  .ent-auth__aside-text {
    margin-top: 11px;
    max-width: 56ch;
    font-size: 14px;
  }

  .ent-auth__list,
  .ent-auth__steps {
    display: none;
  }

  .ent-auth__foot {
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 20px;
  }

  .ent-auth__copyright {
    display: none;
  }

  .ent-auth__main {
    padding: 64px 26px 52px;
  }

  .ent-auth__utility {
    display: none;
  }

  .ent-auth__panel {
    max-width: 460px;
  }
}

@media (max-width: 560px) {
  .ent-auth__rail-top {
    gap: 12px;
  }

  .ent-auth__aside {
    padding: 24px 20px 26px;
  }

  .ent-auth__brand img {
    max-height: 32px;
  }

  .ent-auth__lang-link {
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ent-auth__statement {
    font-size: 26px;
  }

  .ent-auth__aside-text {
    display: none;
  }

  .ent-auth__foot {
    margin-top: 20px;
  }

  .ent-auth__main {
    padding: 60px 20px 44px;
  }

  .ent-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ent-form__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ent-auth *,
  .ent-auth *::before,
  .ent-auth *::after {
    transition-duration: 0.01ms !important;
  }
}
