/* React auth island — compact */
.rsx {
  --rsx-a: var(--rs-a, #da532c);
  --rsx-ad: var(--rs-ad, #b8431f);
  --rsx-t: var(--rs-t, #2a2a2a);
  --rsx-m: #6b6b6b;
  --rsx-line: var(--rs-b, #e6e8eb);
  color: var(--rsx-t);
  font: inherit;
}

.rsx-hero {
  padding: 22px 24px 0 24px;
}

.rsx h2.rsx-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rsx-lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rsx-m);
}

.rsx-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 14px 24px 0;
  padding: 3px;
  border-radius: 10px;
  background: #f1f1f1;
}

.rsx-tab {
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rsx-tab.is-active {
  background: #fff;
  color: var(--rsx-t);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.rsx-body {
  display: grid;
  align-items: stretch;
}

.rsx-body > .rsx-panel {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.rsx-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 24px 22px;
  box-sizing: border-box;
}

.rsx-panel-solo {
  display: flex;
  flex-direction: column;
}

.rsx-panel.is-inactive {
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.rsx-body > .rsx-panel:not(.is-inactive) {
  z-index: 1;
}

.rsx-fields {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1 1 auto;
}

.rsx-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.rsx-note {
  margin: 0 0 12px;
  min-height: 2.8em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rsx-m);
}

.rsx-check-spacer {
  min-height: 22px;
}

.rsx-error-slot {
  visibility: hidden;
  min-height: 1.15em;
}

.rsx-alert-inline {
  margin: 0 0 10px;
}

.rsx-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.rsx-label-center {
  text-align: center;
}

.rsx-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--rsx-line);
  border-radius: 10px;
  background: #fafafa;
  color: var(--rsx-t);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rsx-input:focus {
  outline: none;
  border-color: var(--rsx-a);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(218, 83, 44, 0.14);
}

.rsx-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2px 0;
}

.rsx-digit {
  width: 48px;
  height: 50px;
  padding: 0;
  border: 1.5px solid var(--rsx-line);
  border-radius: 10px;
  background: #fafafa;
  color: var(--rsx-t);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  caret-color: var(--rsx-a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rsx-digit:focus {
  outline: none;
  border-color: var(--rsx-a);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(218, 83, 44, 0.16);
}

.rsx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--rsx-a);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.rsx-btn:hover:not(:disabled) {
  background: var(--rsx-ad);
}

.rsx-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.rsx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rsx-linkbtn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rsx-a);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.rsx-linkbtn:hover {
  text-decoration: underline;
}

.rsx-linkbtn-muted {
  color: var(--rsx-m);
  font-weight: 500;
}

.rsx-hint {
  margin: 0;
  font-size: 12px;
  color: #1b5e20;
  text-align: center;
}

.rsx-hint-wait {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--rsx-m, #555);
  text-align: center;
}

.rsx-error {
  margin: 0;
  min-height: 1.15em;
  font-size: 12px;
  color: #c62828;
}

.rsx-error-center {
  text-align: center;
}

.rsx-alert {
  margin: 10px 20px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdecea;
  color: #c62828;
  font-size: 12px;
  line-height: 1.4;
}

.rsx-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--rsx-m);
  cursor: pointer;
}

.rsx-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--rsx-a);
}

.rsx-links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--rsx-line);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--rsx-m);
}

.rsx-links-spacer {
  display: none;
}

.rsx-links a {
  color: var(--rsx-a);
  font-weight: 600;
  text-decoration: none;
}

.rsx-links a:hover {
  text-decoration: underline;
}

.rs-auth--modal .rs-auth__shell,
.rs-auth--page .rs-auth__shell {
  border: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.rs-auth--page {
  padding: 40px 16px 56px;
}

@media (max-width: 420px) {
  .rsx-hero,
  .rsx-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rsx-tabs {
    margin-left: 18px;
    margin-right: 18px;
  }

  .rsx-digit {
    width: 44px;
    height: 46px;
    font-size: 20px;
  }
}
