*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0F034E;
  --navy-light: #2a1878;
  --gold:       #9C7E0F;
  --gold-light: #c9a827;
  --green:      #16a34a;
  --red:        #dc2626;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-700:   #334155;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header {
  background: var(--navy);
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

header img {
  height: 40px;
  width: auto;
}

/* ── Main content ───────────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}

.card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.card .subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── Form ───────────────────────────────────────────────────────────────── */

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  font-size: 0.95rem;
  color: var(--gray-700);
  background: #fff;
  transition: border-color 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(15,3,78,0.1);
}

.field input[readonly] {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: default;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.confirm-row input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

/* ── Button ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.btn:hover:not(:disabled) {
  background: var(--navy-light);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── State messages ─────────────────────────────────────────────────────── */

.message {
  display: none;
  border-radius: 5px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--green);
}

.message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red);
}

.message.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--gray-400);
}
