/* ============================================================
   SDTT Verify - Brand Stylesheet
   Inspired by the navy/cream palette of the printed certificate
   ============================================================ */
:root {
  --sdtt-navy:       #1B2B5C;
  --sdtt-navy-deep:  #0F1B3D;
  --sdtt-navy-soft:  #2D4180;
  --sdtt-red:        #C8202C;
  --sdtt-red-soft:   #E84B57;
  --sdtt-gold:       #C4912A;
  --sdtt-cream:      #F8F4EC;
  --sdtt-cream-deep: #EFE7D5;
  --sdtt-ink:        #1A1A2E;
  --sdtt-muted:      #6B7280;
  --sdtt-border:     #E5E0D2;
  --sdtt-success:    #15803D;
  --sdtt-success-bg: #DCFCE7;
  --sdtt-error:      #B91C1C;
  --sdtt-error-bg:   #FEE2E2;
  --sdtt-warn:       #B45309;
  --sdtt-warn-bg:    #FEF3C7;
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 27, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 27, 61, 0.12);
}

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

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sdtt-ink);
  background: var(--sdtt-cream);
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-display { font-family: 'Outfit', system-ui, sans-serif; }

a { color: var(--sdtt-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Page container */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  background: var(--sdtt-navy);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.brand-header {
  background: #fff;
  padding: 24px 20px;
  border-bottom: 1px solid var(--sdtt-border);
  text-align: center;
}

.brand-header img.logo { height: 64px; }
.brand-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--sdtt-navy);
  font-size: 22px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.brand-header p {
  color: var(--sdtt-red);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--sdtt-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.card-pad { padding: 32px; }

/* Container */
.container { max-width: 600px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.container-lg { max-width: 1100px; margin: 0 auto; padding: 24px 16px; width: 100%; }

/* Form */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sdtt-navy);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--sdtt-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  color: var(--sdtt-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sdtt-navy);
  box-shadow: 0 0 0 3px rgba(27, 43, 92, 0.12);
}
.field .hint { font-size: 12px; color: var(--sdtt-muted); margin-top: 4px; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--sdtt-navy);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--sdtt-navy-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--sdtt-navy);
  border: 1.5px solid var(--sdtt-border);
}
.btn-ghost:hover { background: var(--sdtt-cream-deep); }

.btn-danger {
  background: var(--sdtt-red);
  color: #fff;
}
.btn-danger:hover { background: #9c1a23; }

.btn-link {
  background: none;
  border: none;
  color: var(--sdtt-navy);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--sdtt-success-bg); color: var(--sdtt-success); border: 1px solid #86efac; }
.alert-error { background: var(--sdtt-error-bg); color: var(--sdtt-error); border: 1px solid #fca5a5; }
.alert-warn { background: var(--sdtt-warn-bg); color: var(--sdtt-warn); border: 1px solid #fde68a; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* Footer */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--sdtt-muted);
  font-size: 13px;
  margin-top: auto;
}
.footer a { color: var(--sdtt-navy); font-weight: 600; }

/* Responsive */
@media (max-width: 540px) {
  .card-pad { padding: 22px; }
  .brand-header h1 { font-size: 19px; }
  .field-row { flex-direction: column; gap: 0; }
}
