:root {
  --green: #097B3E;
  --gold: #D89837;
  --text: #1c2733;
  --text-muted: #5b6b7a;
  --border: #dfe6ec;
  --bg: #f7f9fb;
  --success: #097B3E;
  --danger: #d64545;
  --warning: #b8860b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-header {
  background: linear-gradient(135deg, var(--green), #0a5c30);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-header p {
  margin: 0;
  color: #dff2e6;
  font-size: 0.9375rem;
}

main {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 9.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.verify-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 0.5rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(9, 123, 62, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.9375rem;
}

.field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field-divider {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  background: #c2872f;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
  text-align: center;
}

.result {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.result__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.result__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.result--valid .result__icon {
  color: var(--success);
}

.result--invalid .result__icon,
.result--error .result__icon {
  color: var(--danger);
}

.result h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.result .subtext {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff3cd;
  color: var(--warning);
}

.detail-grid {
  display: inline-grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.25rem;
  margin-top: 1.25rem;
  text-align: left;
}

.detail-grid dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.detail-grid dd {
  margin: 0;
  font-size: 0.9375rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
