/* TrustNow 회원가입/로그인 폼 공통 — index.html 톤과 맞춤 */

.form-status {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status[hidden] {
  display: none !important;
}

.form-status.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status.is-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.form-status.is-busy {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.field-error {
  display: block;
  color: #b91c1c;
  font-size: 0.8rem;
  min-height: 1.15em;
  margin-top: 0.3rem;
}

.field-error:empty {
  display: none;
}

.input-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.input-row > input {
  flex: 1;
  min-width: 0;
}

.pw-toggle {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.pw-toggle:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.pw-toggle[aria-pressed="true"] {
  background: #e5e7eb;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.address-row > input {
  flex: 1;
  min-width: 12rem;
}

.btn-address-search {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-address-search:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

button.primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.device-section {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.device-note-heading {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.device-note {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
