.tarh-auth-dialog {
  box-sizing: border-box;
  inset: 0;
  border: 1px solid #e6e9ed;
  border-radius: 24px;
  padding: 34px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: var(--tarh-text, #243041);
  background: var(--tarh-surface, #fff);
  font: inherit;
  box-shadow: 0 24px 80px #18203240;
  text-align: right;
}
.tarh-auth-dialog::backdrop {
  background: #17233388;
  backdrop-filter: blur(4px);
}
.tarh-auth-dialog * {
  box-sizing: border-box;
  font-family: inherit;
}
.tarh-auth-dialog [hidden] {
  display: none !important;
}
.tarh-auth-dialog h2 {
  font-size: 24px;
  margin: 16px 0 8px;
}
.tarh-auth-dialog p {
  font-size: 14px;
  line-height: 1.9;
}
.tarh-auth-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--tarh-primary, #82bc3b);
  color: #173009;
  font-size: 26px;
}
.tarh-auth-close {
  position: absolute;
  left: 16px;
  top: 12px;
  border: 0;
  background: #f2f4f7;
  color: #334155;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 24px;
}
.tarh-auth-dialog label {
  display: block;
  font-size: 14px;
  margin: 14px 0 6px;
}
.tarh-auth-dialog input {
  width: 100%;
  padding: 12px 14px;
  height: 50px;
  border: 1px solid #d9dfe8;
  border-radius: 12px;
  background: #f9fafb;
  color: #243041;
  font-size: 16px;
}
.tarh-auth-dialog input:focus {
  outline: 2px solid var(--tarh-primary, #82bc3b);
  outline-offset: 2px;
}
#tarh-auth-code {
  letter-spacing: 8px;
  text-align: center;
  font-size: 22px;
}
.tarh-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--tarh-cta, #c2410c);
  color: var(--tarh-cta-contrast, #fff);
  font-size: 15px;
  cursor: pointer;
}
.tarh-auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.tarh-auth-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.tarh-auth-tools button {
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--tarh-secondary, #334155);
  cursor: pointer;
}
.tarh-auth-tools button:disabled {
  opacity: 0.5;
  cursor: default;
}
.tarh-auth-footer {
  color: #64748b;
}
.tarh-auth-password {
  display: block;
  text-align: center;
  color: var(--tarh-secondary, #334155);
  font-size: 13px;
}
#tarh-auth-message {
  min-height: 25px;
  color: #405169;
}
#tarh-auth-message.is-error {
  color: #b42318;
}
.tarh-auth-loader {
  display: flex;
  gap: 4px;
}
.tarh-auth-loader i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: tarh-auth-pulse 1s infinite;
}
.tarh-auth-loader i:nth-child(2) {
  animation-delay: 0.15s;
}
.tarh-auth-loader i:nth-child(3) {
  animation-delay: 0.3s;
}
.tarh-auth-gate {
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  text-align: center;
  margin: 24px 0;
}
.tarh-auth-gate button {
  cursor: pointer;
}
.tarh-auth-gate a {
  display: inline-block;
}
.tarh-auth-dialog button:focus-visible {
  outline: 2px solid #334155;
  outline-offset: 3px;
}
@keyframes tarh-auth-pulse {
  50% {
    opacity: 0.25;
    transform: translateY(-3px);
  }
}
@media (max-width: 480px) {
  .tarh-auth-dialog {
    padding: 26px 22px;
  }
  .tarh-auth-dialog h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tarh-auth-loader i {
    animation: none;
  }
}
