html.thai-auth-locked body {
  visibility: hidden;
  overflow: hidden;
}

html.thai-auth-locked body .thai-auth-overlay {
  visibility: visible;
}

html.thai-auth-unlocked body {
  visibility: visible;
}

.thai-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 139, 61, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(14, 16, 24, 0.96), rgba(10, 11, 18, 0.98));
}

.thai-auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(12, 16, 26, 0.96);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f7f1e7;
}

.thai-auth-eyebrow {
  margin: 0 0 14px;
  color: #ff9d5c;
  font: 700 0.72rem/1.4 "Press Start 2P", monospace;
  letter-spacing: 0.08em;
}

.thai-auth-title {
  margin: 0 0 16px;
  color: #fff4df;
  font: 700 1.4rem/1.3 "Press Start 2P", monospace;
}

.thai-auth-subtitle {
  margin: 0 0 22px;
  color: #cfd7e6;
  font: 500 0.98rem/1.6 "Segoe UI", Tahoma, sans-serif;
}

.thai-auth-form {
  display: flex;
  gap: 10px;
}

.thai-auth-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 600 1rem/1.2 "Segoe UI", Tahoma, sans-serif;
}

.thai-auth-input:focus {
  outline: 2px solid #ff9d5c;
  outline-offset: 2px;
}

.thai-auth-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffb56e, #ff8642);
  color: #1c140d;
  font: 700 0.82rem/1 "Press Start 2P", monospace;
  cursor: pointer;
}

.thai-auth-error {
  min-height: 1.3rem;
  margin: 14px 0 0;
  color: #ff8e93;
  font: 600 0.92rem/1.4 "Segoe UI", Tahoma, sans-serif;
}

.thai-auth-shake {
  animation: thai-auth-shake 220ms ease-in-out 1;
}

@keyframes thai-auth-shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  75% {
    transform: translateX(7px);
  }
}

@media (max-width: 640px) {
  .thai-auth-card {
    padding: 22px;
    border-radius: 18px;
  }

  .thai-auth-title {
    font-size: 1.05rem;
  }

  .thai-auth-form {
    flex-direction: column;
  }

  .thai-auth-button {
    width: 100%;
  }
}
