label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #3f3f46;
  margin-bottom: 6px;
}

.field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #18181b;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #a1a1aa; }
.field:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(190, 242, 100, .4);
}

.btn-primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #bef264;
  color: #18181b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { background: #ccff00; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  height: 44px;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
  background: #fff;
  color: #3f3f46;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: #18181b; color: #18181b; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #18181b; }

.otp-inputs { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp-input {
  width: 100%;
  max-width: 56px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  color: #18181b;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.otp-input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(190, 242, 100, .4);
}

.error-box {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
  padding: 10px 12px;
}

.fade-in { animation: fadeIn .25s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.htmx-request .btn-primary { opacity: .7; pointer-events: none; }

[x-cloak] { display: none !important; }
