@font-face {
  font-family: "Pedagio Inter";
  src: url("https://pedagiodigital.com/assets/assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --panel-shadow: rgba(0,0,0,0.48);
  --panel-bg: #292929;
  --text: #dedede;
  --muted: rgba(220,220,220,0.84);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Pedagio Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 36% 58% at 24% 66%, rgba(62, 54, 0, 0.74) 0%, rgba(37, 34, 0, 0.48) 48%, transparent 100%),
    linear-gradient(108deg, #030403 0%, #0b0b03 36%, #070806 61%, #171717 100%);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 82px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: min(250px, 35vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 0.82;
  font-weight: 700;
  font-size: clamp(2.4rem, 2vw + 1.4rem, 4.7rem);
  letter-spacing: -0.08em;
}

.brand-name span:last-child {
  font-weight: 400;
}

.panel-wrap {
  width: min(418px, 44vw);
  justify-self: center;
  transform: translateY(-10px);
  background: linear-gradient(180deg, #2b2b2b 0%, #232323 45%, #080808 100%);
  border-radius: 29px;
  padding: 14px;
  box-shadow: 0 22px 48px var(--panel-shadow);
  border: 1px solid rgba(255,255,255,0.035);
}

.panel {
  width: 100%;
  border-radius: 18px;
  background: transparent;
  padding: 0 18px 11px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-btn.back {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 2px;
}

.title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  color: rgba(243,242,239,0.92);
}

.search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  position: relative;
}

.search-btn::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  top: 8px;
  left: 8px;
}

.search-btn::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
  transform: rotate(45deg);
  right: 7px;
  bottom: 7px;
}

.car-box {
  padding: 4px 8px 0;
}

.car-svg {
  width: 100%;
  max-width: 340px;
  height: 148px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.12));
}

.plate-wrap {
  margin-top: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.018), rgba(0,0,0,0.12));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0 12px 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.plate-wrap.has-error {
  background: linear-gradient(145deg, rgba(94,38,39,0.5), rgba(18,12,13,0.42));
  border-color: rgba(255,130,132,0.42);
}

.plate-wrap.has-error .input-box {
  border-bottom-color: rgba(255,130,132,0.3);
}

.plate-label {
  display: block;
  font-size: 11px;
  color: rgba(235,235,235,0.76);
  text-align: center;
  padding: 7px 0 11px;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.input-box {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-text {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 23px;
  letter-spacing: 0.36em;
  color: rgba(205,205,205,0.72);
  font-weight: 500;
  text-transform: uppercase;
}

.plate-text::placeholder {
  color: rgba(205,205,205,0.72);
  opacity: 1;
}

.plate-error {
  margin: 8px 0 0;
  color: #ff727b;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.plate-error[hidden] {
  display: none;
}

.plate-wrap.has-error .plate-label {
  color: #ff727b;
}

.switch-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-size: 11px;
  color: rgba(230,230,230,0.78);
}

.switch {
  position: relative;
  width: 50px;
  height: 30px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cecece;
  transition: 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 5px;
  top: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: 0.2s ease;
}

.switch input:checked + .slider {
  background: #777;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(235,235,235,0.82);
}

.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 4px;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid rgba(255,255,255,0.9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms {
  margin-top: 23px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.terms a {
  color: rgba(230,230,230,0.88);
  text-decoration: underline;
}

.primary-btn {
  width: 100%;
  height: 40px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #252525, #343434);
  color: rgba(230,230,230,0.2);
  font-size: 11px;
  cursor: not-allowed;
}

.primary-btn:not(:disabled) {
  border-color: #ead400;
  background: #ead400;
  color: #17160a;
  cursor: pointer;
}

.primary-btn.is-loading {
  border-color: #ead400;
  background: #ead400;
  color: #17160a;
  cursor: wait;
}

.button-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(23,22,10,0.3);
  border-top-color: #17160a;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}

.primary-btn.is-loading .button-spinner {
  display: inline-block;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.support {
  margin-top: 22px;
  display: block;
  color: rgba(230,230,230,0.9);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: 26px 18px 36px;
  }

  .brand {
    min-width: 0;
    transform: none;
  }

  .brand-logo {
    width: min(250px, 76vw);
  }

  .panel-wrap {
    width: min(92vw, 418px);
    transform: none;
  }
}
