*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #fef9eb;
  --bg-dot: #d4cfc4;
  --bg-dot-size: 12px;
}

.dotted-bg {
  background-color: var(--bg-base);
  background-image: radial-gradient(circle, var(--bg-dot) 0.5px, transparent 0.5px);
  background-size: var(--bg-dot-size) var(--bg-dot-size);
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: #212121;
  min-height: 100vh;
  line-height: 1.5;
}

.result-page-body .custom-cursor,
.result-page-body .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.result-page-body .custom-cursor.hidden,
.result-page-body .cursor-ring.hidden {
  opacity: 0;
}

.result-page-body .cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a8b5c4;
}

.result-page-body .cursor-ring {
  width: 38px;
  height: 38px;
  border: 2px solid #3a4a5c;
  border-radius: 50%;
  background: transparent;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logout-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #212121;
  cursor: pointer;
  white-space: nowrap;
}

.logout-btn:hover {
  background: #f5f5f5;
}

.login-page .page-title {
  margin-bottom: 2rem;
}

.login-error {
  font-size: 0.875rem;
  color: #c62828;
  padding: 0.65rem 0.75rem;
  background: #fdecea;
  border-radius: 8px;
}

.login-error.hidden {
  display: none;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-card {
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.25rem;
}

.vehicle-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #757575;
}

.field input,
.field select {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #212121;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #888;
}

.submit-btn {
  margin-top: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #212121;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.submit-btn:hover {
  background: #333;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.qr-code {
  width: 160px !important;
  height: 160px !important;
  border-radius: 6px;
}

.qr-download-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #212121;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qr-download-btn:hover {
  background: #f5f5f5;
}

.qr-link {
  font-size: 0.75rem;
  color: #999;
  word-break: break-all;
  text-align: center;
  max-width: 100%;
}

.result-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 16px 32px;
}

.result-page .page-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.result-card {
  margin: 0;
  background: #f9f9f9;
  padding: 18px 16px 22px 12px;
  border-radius: 10px;
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: 100%;
}

.result-card .card-title {
  font-size: 20px;
  font-weight: 400;
  color: #111;
  margin-bottom: 14px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-row {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.result-row dt {
  display: inline;
  color: #757575;
  font-weight: 700;
}

.result-row dd {
  display: inline;
  color: #9a9a9a;
  font-weight: 400;
  margin: 0 0 0 2px;
}

.status-value.valid {
  color: #1b8a1b;
  font-weight: 700;
}

.status-value.expired,
.status-value.invalid {
  color: #c62828;
  font-weight: 700;
}

.status-value.pending {
  color: #e65100;
  font-weight: 700;
}

@media (min-width: 769px) {
  .result-page {
    width: auto;
    max-width: none;
    margin-left: 245px;
    margin-right: 0;
    padding: 24px 16px 32px;
  }

  .result-page .page-title {
    font-size: 28px;
    margin-bottom: 22px;
  }

  .result-card {
    width: 520px;
    max-width: 520px;
    min-width: 520px;
    padding: 18px 32px 22px 12px;
  }

  .result-card .card-title {
    font-size: 22px;
  }

  .result-row {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-title,
  .result-page .page-title {
    font-size: 26px;
  }

  .result-row {
    font-size: 14px;
  }
}
