:root {
  color: #17324a;
  background: #edf4f5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(66, 153, 145, 0.18), transparent 34rem),
    linear-gradient(155deg, #f7fbfa 0%, #e7f0f2 100%);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 2rem, 680px);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.brand-mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  background: #173b57;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0.6rem 1.6rem rgba(23, 59, 87, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.3rem;
  color: #173b57;
  font-size: 1.25rem;
}

.eyebrow {
  margin-bottom: 0.15rem;
  color: #497081;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card {
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid rgba(77, 113, 126, 0.16);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.25rem 3.5rem rgba(28, 62, 73, 0.12);
  backdrop-filter: blur(12px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.section-heading p {
  margin-bottom: 0;
  color: #5c7280;
}

.section-heading.split {
  justify-content: space-between;
}

.icon-circle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dff1ed;
  color: #16786c;
  font-size: 1.3rem;
}

form label {
  display: block;
  margin-bottom: 0.45rem;
  color: #29495f;
  font-size: 0.86rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0 0.95rem;
  border: 1px solid #b8cbd0;
  border-radius: 0.75rem;
  outline: none;
  background: #fbfdfd;
  color: #17324a;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: #1e8275;
  box-shadow: 0 0 0 0.2rem rgba(30, 130, 117, 0.14);
}

button {
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #173b57;
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover:not(:disabled) {
  background: #0f5062;
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

#loginButton {
  width: 100%;
  margin-top: 1rem;
}

.link-button {
  min-height: auto;
  padding: 0.4rem;
  background: transparent;
  color: #276d75;
  font-size: 0.85rem;
}

.link-button:hover:not(:disabled) {
  background: #edf7f5;
  transform: none;
}

.lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

#vehicleNumber {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hint {
  margin: 0.45rem 0 0;
  color: #6d818b;
  font-size: 0.78rem;
}

.turnstile {
  min-height: 65px;
  margin-top: 1rem;
}

.message {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: #fff0ec;
  color: #9b321f;
  font-size: 0.86rem;
}

.result {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid #d4e3e2;
  border-radius: 1rem;
  background: #f9fcfb;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #dce8e7;
  background: #eef8f5;
}

.result-header h3 {
  margin-bottom: 0;
  color: #133c4e;
  letter-spacing: 0.07em;
}

.badge {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #d9eee7;
  color: #17695f;
  font-size: 0.75rem;
  font-weight: 800;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0.35rem 1.25rem 1.15rem;
  column-gap: 1.25rem;
}

.details > div {
  min-width: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5eeee;
}

.details > div:last-child {
  border-bottom: 0;
}

.details dt {
  margin-bottom: 0.2rem;
  color: #73858b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #203f50;
  font-weight: 680;
}

.details a {
  color: #096d75;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

.details .muted {
  color: #829096;
  font-weight: 500;
}

.centered {
  display: grid;
  min-height: 12rem;
  place-items: center;
  align-content: center;
  color: #55717b;
}

.spinner {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border: 3px solid #d5e5e5;
  border-top-color: #227b73;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

footer {
  padding: 1.1rem;
  color: #6b8189;
  text-align: center;
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1.2rem, 680px);
    padding-top: 1.4rem;
  }

  .lookup-row {
    grid-template-columns: 1fr;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .details > div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
