:root {
  color-scheme: light;
  --black: #fff;
  --panel: #fff;
  --panel-soft: #f7f7f8;
  --white: #111114;
  --muted: #5f5f66;
  --line: #d8d8dc;
  --red: #e31b23;
  --red-bright: #ff3540;
  --red-dark: #8f1016;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -10%, rgba(227, 27, 35, .10), transparent 35%),
    linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.wrapper {
  width: min(960px, calc(100% - 32px));
  margin: auto;
  padding: 64px 0 36px;
}

.verify-card {
  width: 100%;
  text-align: center;
}

.logo img {
  display: block;
  width: auto;
  max-width: 300px;
  margin: 0 auto 26px;
  object-fit: contain;
}

h1 {
  margin: 10px 0 14px;
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 5.3rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .95;
  text-transform: uppercase;
}

.subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.subtitle::before {
  content: "Secure verification portal";
  display: block;
  margin-bottom: 10px;
  color: var(--red-bright);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.archive-notice {
  max-width: 780px;
  margin: 26px auto 0;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  background: #fff4f4;
  font-size: .82rem;
  line-height: 1.55;
  text-align: left;
}

.archive-notice a { color: var(--red-dark); font-weight: 700; }

#verifyForm {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 780px;
  margin: 38px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .5);
}

#verifyForm input {
  min-width: 0;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--white);
  background: #fff;
  font: 700 .92rem Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#verifyForm input::placeholder { color: #67676c; }
#verifyForm input:focus { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

#verifyForm button,
#printBtn {
  padding: 0 27px;
  border: 1px solid var(--red);
  border-radius: 0;
  color: var(--white);
  background: var(--red);
  font-size: .92rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}

#verifyForm button:hover,
#printBtn:hover { color: var(--red-bright); background: transparent; }

#result { max-width: 780px; margin: 24px auto 0; }
.loading { color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.result-card,
.error-box {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
  text-align: left;
}

.error-box {
  border-left: 5px solid var(--red);
  color: var(--red-bright);
  font-weight: 700;
}

.profile { text-align: center; }
.profile img {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  border: 2px solid var(--red);
  border-radius: 0;
  object-fit: cover;
  box-shadow: 7px 7px 0 rgba(227, 27, 35, .18);
}

.result-card h2 {
  margin: 8px 0 10px;
  color: var(--white);
  font-size: 1.8rem;
  text-align: center;
}

.badges { margin-bottom: 20px; text-align: center; }
.badge {
  display: inline-block;
  margin: 4px;
  padding: 5px 10px;
  border: 1px solid var(--red);
  border-radius: 0;
  color: var(--white);
  background: var(--red-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-suspended, .status-expired, .status-revoked, .unknown { color: var(--red-bright); background: transparent; }

.info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  font-size: 14px;
}

.info p {
  min-width: 0;
  margin: 0;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  overflow-wrap: anywhere;
}

.info p:nth-child(odd) { border-right: 1px solid var(--line); }
.info p:nth-last-child(-n + 2) { border-bottom: 0; }
.info strong { display: block; margin-bottom: 6px; color: var(--red-bright); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.disclaimer {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  background: rgba(227, 27, 35, .08);
  font-size: .79rem;
  line-height: 1.55;
}

.verified-note { margin-top: 18px; color: var(--muted); font-size: .78rem; text-align: center; }
.verification-url a {
    color: var(--red-bright);
    font-size: .78rem;
    display: none;
}


#printBtn {
  width: min(780px, 100%);
  margin: 10px auto 0;
  padding: 17px;
}

.footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  color: #77777d;
  font-size: .75rem;
}

.footer::before { content: ""; width: 5px; height: 5px; margin: 5px 8px 0 0; background: var(--red); }

@media (max-width: 700px) {
  .wrapper { padding-top: 42px; }
  #verifyForm { grid-template-columns: 1fr; }
  #verifyForm button { padding: 17px; }
  .result-card, .error-box { padding: 21px; }
  .info { grid-template-columns: 1fr; }
  .info p, .info p:nth-child(odd), .info p:nth-last-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .info p:last-child { border-bottom: 0; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, #verifyForm, #printBtn { display: none !important; }
  .wrapper { width: 100%; padding: 0; }
  .result-card { border: 1px solid #000; box-shadow: none; }
  .result-card h2, .info p { color: #000; }
  .footer::after { content: "Printed verification - association only, not authorization"; display: block; margin-top: 8px; color: #666; font-size: 10px; }
}
