/* The public consultation and the sign-in share the same surface and controls. */
.inspection-entry,
.inspection-access {
  --entry-ink: #1b1e22;
  --entry-muted: #505962;
  --entry-line: #d8dbde;
  --entry-accent: #ffcc00;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--entry-line);
  border-radius: 24px;
  background: #fff;
  color: var(--entry-ink);
  box-shadow: 0 16px 44px -30px rgb(26 33 41 / 36%);
}

.inspection-entry .entry-photo {
  min-height: 415px;
  padding: clamp(24px, 3.7vw, 50px);
  background: #212326;
}

.inspection-entry .entry-photo img {
  object-position: 66% 32%;
}

.inspection-entry .entry-photo::after {
  background:
    linear-gradient(30deg, #202327 1%, rgb(29 32 36 / 90%) 26%, rgb(29 32 36 / 30%) 47%, transparent 62%),
    linear-gradient(0deg, rgb(17 19 22 / 45%), transparent 58%);
}

.inspection-entry .entry-photo div {
  max-width: 15em;
}

.inspection-entry #entry-cover-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.1vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
  font-weight: 675;
}

.inspection-entry #entry-cover-title span {
  display: inline;
  margin: 0;
  color: var(--entry-accent);
  font-weight: inherit;
}

.inspection-entry .entry-form,
.inspection-access .login {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(28px, 4.1vw, 56px);
}

:is(.inspection-entry, .inspection-access) .entry-intro {
  display: grid;
  gap: 10px;
}

:is(.inspection-entry, .inspection-access) .entry-intro :is(h1, h2) {
  color: var(--entry-ink);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.043em;
  font-weight: 670;
}

:is(.inspection-entry, .inspection-access) .entry-intro :is(h1, h2):focus {
  outline: 0;
}

:is(.inspection-entry, .inspection-access) .entry-intro p,
.inspection-entry .entry-manual > p {
  color: var(--entry-muted);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.inspection-entry .entry-intro .entry-registration,
.inspection-access .access-registration {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.8125rem;
}

.inspection-entry .entry-registration strong,
.inspection-access .access-registration b {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.085em;
  font-weight: 650;
}

.inspection-entry .entry-form form,
.inspection-entry .entry-choices {
  display: grid;
  gap: 18px;
}

:is(.inspection-entry, .inspection-access) label {
  gap: 7px;
  color: #353a40;
  font-weight: 590;
  font-size: 0.875rem;
}

:is(.inspection-entry, .inspection-access) :is(input, select) {
  min-width: 0;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #838b94;
  border-radius: 10px;
  background: #fff;
  color: var(--entry-ink);
  font-size: 1rem;
  font-weight: 500;
}

.inspection-entry input.plate-input {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.inspection-entry input.plate-input::placeholder {
  color: #727980;
  font-weight: 500;
}

:is(.inspection-entry, .inspection-access) .entry-primary {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--entry-accent);
  color: #181a1d;
  font-size: 0.9625rem;
  font-weight: 680;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

@media (hover: hover) {
  :is(.inspection-entry, .inspection-access) .entry-primary:not(:disabled):hover {
    border-color: #282a2c;
    box-shadow: 0 3px 10px rgb(25 28 30 / 14%);
  }
}

:is(.inspection-entry, .inspection-access) .entry-primary:disabled {
  border-color: #d4d8dc;
  background: #e6e8ea;
  color: #535b64;
}

:is(.inspection-entry, .inspection-access) :is(input, select, button, summary):focus-visible {
  outline: 2px solid var(--entry-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--entry-accent);
}

.inspection-entry .choice {
  gap: 12px;
}

.vehicle-portrait {
  margin: 0;
  min-width: 0;
}

.vehicle-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.vehicle-portrait figcaption {
  margin: 0;
  color: #515a61;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.entry-portrait {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 38px);
  background: #212529;
}

.entry-portrait img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 12px;
}

.entry-portrait figcaption,
.access-side .vehicle-portrait figcaption {
  color: #d6dade;
}

.model-heading,
.vehicle-head > .vehicle-identity.model-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.model-description {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.portrait-thumb {
  flex: 0 0 clamp(85px, 9vw, 112px);
  display: grid;
  gap: 4px;
}

.portrait-thumb img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #e5e7e9;
  border-radius: 8px;
}

.inspection-front {
  grid-column: 1 / -1;
  font-size: 0.875rem;
}

.inspection-front summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 12px;
  cursor: pointer;
  font-weight: 600;
}

.captured-portrait {
  display: grid;
  gap: 6px;
  max-width: 440px;
}

.captured-portrait img {
  max-height: 320px;
  object-fit: contain;
  background: #eef0f1;
  border-radius: 10px;
}

.inspection-entry .choice + .choice {
  border-top: 1px solid var(--entry-line);
  padding-top: 18px;
}

:is(.inspection-entry, .inspection-access) .entry-model {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.inspection-entry .fipe-summary {
  gap: 5px;
  padding: 12px 14px;
  background: #f3f4f5;
  border: 0;
}

.inspection-entry .fipe-summary :is(span, small),
.inspection-entry .model-acceptance {
  font-size: 0.8125rem;
}

.inspection-entry .entry-form .secondary {
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  margin: -8px 0 -8px -10px;
  border: 1px solid transparent;
  background: none;
  font-size: 0.875rem;
  color: #434c55;
}

.inspection-entry .entry-form .secondary svg {
  width: 15px;
}

.inspection-access .access-side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 34px;
  min-width: 0;
  min-height: 420px;
  padding: clamp(28px, 3.7vw, 46px);
  background: linear-gradient(145deg, #2d3137, #181a1d);
  color: #fff;
}

.inspection-access .access-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% 30%;
}

.inspection-access:not(.with-vehicle) .access-side::after {
  position: absolute;
  z-index: -1;
  content: '';
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(14 16 19 / 85%) 100%);
}

.inspection-access .access-brand {
  display: block;
  width: 86px;
  height: auto;
  filter: brightness(0) invert(1);
}

.inspection-access.with-vehicle .access-brand {
  align-self: flex-start;
  margin-bottom: auto;
}

.inspection-access .login-vehicle {
  width: 100%;
  gap: 7px;
}

.inspection-access .access-context,
.inspection-access .access-registration,
.inspection-access .login-vehicle .fipe-pending {
  color: #d1d4d7;
}

.inspection-access .access-context {
  font-size: 0.8125rem;
}

.inspection-access .login-vehicle .entry-model {
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  line-height: 1.2;
}

.inspection-access .access-registration b,
.inspection-access .login-vehicle .fipe-summary strong {
  color: #fff;
}

.inspection-access .login-vehicle .fipe-summary,
.inspection-access .login-vehicle .fipe-pending {
  margin-top: 9px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid #53565b;
  border-radius: 0;
  background: none;
}

.inspection-access .login-vehicle .fipe-summary :is(span, small) {
  color: #d1d4d7;
  font-size: 0.8125rem;
}

.inspection-access .login {
  max-width: none;
  gap: 18px;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.inspection-access .login .entry-intro {
  margin-bottom: 5px;
}

.inspection-access .access-password {
  display: grid;
  gap: 7px;
}

.inspection-access .access-password > div {
  position: relative;
}

.inspection-access .access-password input {
  padding-inline-end: 52px;
}

.inspection-access .access-reveal {
  position: absolute;
  inset-block: 3px;
  inset-inline-end: 3px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #4e5760;
}

.inspection-access .access-reveal span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 690px) {
  .inspection-entry,
  .inspection-access {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
  }

  .inspection-entry .entry-photo {
    min-height: 0;
    height: clamp(124px, 39vw, 200px);
    padding: 18px 20px;
  }

  .inspection-entry .entry-photo img {
    object-position: 50% 31%;
  }

  .inspection-entry .entry-photo::after {
    background: linear-gradient(88deg, #202327 5%, rgb(29 32 36 / 94%) 33%, rgb(29 32 36 / 50%) 48%, transparent 67%);
  }

  .inspection-entry .entry-photo div {
    max-width: 48%;
  }

  .inspection-entry #entry-cover-title {
    font-size: clamp(1.55rem, 6.75vw, 2.4rem);
    line-height: 1.08;
  }

  .entry-portrait {
    justify-items: center;
    gap: 0;
    padding: 0;
  }

  .entry-portrait img {
    max-height: 200px;
    border-radius: 0;
  }

  .entry-portrait figcaption {
    padding: 5px 12px;
  }

  .inspection-entry .entry-form,
  .inspection-access .login {
    padding: clamp(18px, 5.2vw, 30px);
  }

  .inspection-entry .entry-form {
    gap: 18px;
  }

  .inspection-access:not(.with-vehicle) .access-side,
  .inspection-access.with-vehicle .access-brand {
    display: none;
  }

  .inspection-access .access-side {
    min-height: 0;
    padding: 17px clamp(18px, 5.2vw, 30px) 18px;
  }

  .inspection-access .login-vehicle {
    gap: 3px;
  }

  .inspection-access .login-vehicle .entry-model {
    font-size: 1.125rem;
  }

  .inspection-access .login-vehicle .fipe-summary,
  .inspection-access .login-vehicle .fipe-pending {
    margin-top: 7px;
    padding-top: 8px;
  }
}

@media (max-width: 360px) {
  .inspection-access .access-side {
    padding-block: 14px;
  }

  .inspection-access .login {
    gap: 13px;
    padding-block: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.inspection-entry, .inspection-access) .entry-primary {
    transition: none;
  }
}
