/* Localiza Baterias — telas de acesso */
body:has(.access-shell) {
  background: #fff;
}

body:has(.access-shell) .customer-brand-line { display: none; }

#view:has(> .access-shell) {
  max-width: none;
  padding: 0;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  grid-template-areas: "scene content";
  min-height: 100svh;
  --access-gold: #ffc21a;
}

body:has(.demo-banner) .access-shell {
  min-height: calc(100svh - 34px);
}

.access-content {
  grid-area: content;
  align-self: center;
  width: min(100%, 520px);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 62px);
}

.access-brand {
  margin-bottom: clamp(20px, 4vw, 42px);
}
.access-brand .brand-word { font-size: clamp(28px, 4.4vw, 41px); }
.access-brand .brand svg { width: clamp(33px, 4vw, 45px); height: auto; }

.access-content h1 {
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}

.access-intro {
  color: #4e4b45;
  font-size: 15px;
  margin-top: 9px;
}

.access-content .field input {
  min-height: 50px;
  border-color: #cbc8c0;
  border-radius: 10px;
  background: #fff;
}

.access-content .btn-primary {
  min-height: 50px;
  border: 1px solid #e8a900;
  border-radius: 10px;
  background: var(--access-gold);
  color: #1b1500;
  box-shadow: none;
  font-weight: 800;
}

.access-content .btn-primary:hover:not(:disabled) { background: #f5b500; }
.access-content :is(input, button, a):focus-visible {
  outline: 2px solid #805700;
  outline-offset: 3px;
}

.access-content .linklike { justify-self: start; color: #6c4a00; }
.access-content .alert-info {
  background: #fff5d7;
  color: #503800;
}
.access-content :is(#login-err, #forgot-msg, #reset-msg, [data-form-status]):empty { margin: 0; }
.access-content :is(#login-err, #forgot-msg, #reset-msg, [data-form-status]):empty + .btn { margin-top: 16px; }

.access-secondary {
  align-items: center;
  gap: 10px 16px;
  padding-top: 4px;
}

.access-scene {
  grid-area: scene;
  isolation: isolate;
  position: relative;
  min-height: clamp(460px, 59vw, 660px);
  overflow: hidden;
  background: #20201e;
  border-right: 5px solid var(--access-gold);
  display: flex;
  align-items: end;
}

.access-scene::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0b0b0bee 0%, #0b0b0bba 24%, #0b0b0b08 59%, #09090922 100%);
}

.access-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  animation: access-photo-drift 4.8s ease-out both;
}

.access-admin .access-photo { object-position: 50% 40%; }
.access-franchisee .access-photo { object-position: 50% 44%; }

@keyframes access-photo-drift {
  from { transform: scale(1.015); }
  to { transform: translate3d(-1.2%, 1%, 0) scale(1.105); }
}

.access-caption {
  color: #fff;
  padding: clamp(28px, 5vw, 76px);
  width: 100%;
}

.access-caption::before {
  content: "";
  display: block;
  width: 45px;
  height: 5px;
  margin-bottom: 15px;
  background: var(--access-gold);
  transform: skewX(-22deg);
}

.access-headline {
  font-family: var(--display);
  font-size: clamp(38px, 5.9vw, 90px);
  line-height: .99;
  font-weight: 800;
  letter-spacing: -.05em;
  max-width: 10ch;
  text-wrap: balance;
}

.access-description {
  margin-top: 16px;
  max-width: 40ch;
  color: #f2f1ef;
  font-weight: 500;
  font-size: clamp(14px, 1.45vw, 18px);
  text-wrap: pretty;
}

@media (max-width: 759px) {
  .access-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "scene" "content";
  }
  .access-scene {
    min-height: 0;
    height: clamp(242px, 53vw, 356px);
    border-right: 0;
    border-bottom: 4px solid var(--access-gold);
  }
  .access-customer .access-photo { object-position: 50% 22%; }
  .access-franchisee .access-photo { object-position: 50% 17%; }
  .access-admin .access-photo { object-position: 50% 20%; }
  .access-scene::after { background: linear-gradient(0deg, #0b0b0bf0 0%, #0b0b0b85 46%, #0b0b0b10 80%); }
  .access-caption { padding: 18px clamp(16px, 5vw, 36px); }
  .access-caption::before { margin-bottom: 9px; width: 32px; height: 3px; }
  .access-headline { font-size: clamp(30px, 7.4vw, 54px); max-width: none; text-wrap: wrap; }
  .access-description { margin-top: 7px; }
  .access-content { align-self: start; padding: 26px clamp(16px, 5vw, 36px) 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .access-photo { animation: none; }
}
