#acesso-overlay[open] {
 position: fixed;
 inset: 0;
 display: grid;
 place-items: safe center;
 width: 100%;
 height: 100%;
 max-width: none;
 max-height: none;
 margin: 0;
 padding: 0;
 border: 0;
 overflow: auto;
 background: #100e15;
 color: #f7f5ee;
}
#acesso-overlay::backdrop { background: #100e15 }
.acesso-palco {
 position: relative;
 width: min(100%, calc(100dvh * 1672 / 941));
 aspect-ratio: 1672 / 941;
 isolation: isolate;
}
.acesso-arte { display: block; width: 100%; height: auto }
.acesso-reflexo {
 position: absolute;
 inset: 0;
 pointer-events: none;
 clip-path: polygon(47% 54%, 62% 53%, 66% 57%, 66% 66%, 57% 64%, 51% 59%);
 background: radial-gradient(ellipse at 55% 60%, #ffce6d60, transparent 12%);
 mix-blend-mode: screen;
 animation: acesso-luz 7s ease-in-out infinite alternate;
}
@keyframes acesso-luz {
 from { opacity: .15; transform: translateX(-.15%) }
 to { opacity: .8; transform: translateX(.2%) }
}
.acesso-cartao {
 position: absolute;
 top: 50%;
 right: 7%;
 transform: translateY(-45%);
 width: min(42%, 430px);
 max-height: calc(100% - 122px);
 overflow: auto;
 padding: clamp(20px, 4vw, 32px);
 border: 1px solid #53605a;
 border-radius: 22px;
 background: #171f21;
 box-shadow: 0 24px 70px #0006;
 font: 500 16px/1.35 system-ui, sans-serif;
}
.acesso-marca {
 margin: 0;
 color: #f7f5ee;
 font-size: clamp(34px, 9vw, 48px);
 font-weight: 850;
 letter-spacing: -.055em;
 line-height: 1.05;
 text-align: center;
}
.acesso-marca em { color: #ffd36b; font-style: normal }
.acesso-campo span {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 overflow: hidden;
 clip-path: inset(50%);
}
.acesso-cartao h2 {
 margin: 9px 0 24px;
 color: #c9d3d0;
 font-size: 1rem;
 font-weight: 600;
 text-align: center;
}
.acesso-cartao h2:focus { outline: none }
#acesso-form { display: grid; gap: 12px; margin: 0 }
#acesso-overlay [hidden] { display: none !important }
.acesso-cartao button, .acesso-acoes button { margin: 0; border-radius: .65em; color: inherit; font: inherit }
.acesso-campo {
 position: relative;
 display: flex;
 align-items: center;
 min-height: 48px;
 border: 1px solid #65746f;
 border-radius: .65em;
 background: #121a1c;
}
.acesso-campo label { flex: 1; min-width: 0 }
.acesso-campo input {
 display: block;
 width: 100%;
 min-height: 46px;
 padding: 0 .85em;
 border: 0;
 border-radius: inherit;
 background: transparent;
 color: #fff;
 font: inherit;
 color-scheme: dark;
}
.acesso-campo input::placeholder { color: #b7c3bf; font-weight: 600 }
.acesso-cartao .acesso-olho { width: 44px; min-height: 44px; border: 0; background: transparent }
.acesso-cartao .acesso-enviar {
 min-height: 48px;
 margin-top: 3px;
 border: 1px solid #ffdc84;
 background: #ffd36b;
 color: #161009;
 font-weight: 850;
}
.acesso-opcoes, .acesso-registo {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: .32em .45em;
 font-size: .9em;
 font-weight: 600;
}
.acesso-opcoes label { display: flex; align-items: center; gap: .35em }
.acesso-opcoes input { margin: 0; accent-color: #ffc400; width: 1.15em; height: 1.15em }
.acesso-cartao :is(.acesso-opcoes button,.acesso-voltar) {
 border: 0;
 padding: .18em 0;
 background: transparent;
 color: #ffce26;
 text-decoration: underline;
}
.acesso-ou { display: flex; align-items: center; gap: .65em; color: #c9d3d0; font-size: .85em }
.acesso-ou::before, .acesso-ou::after { content: ""; height: 1px; background: #44524f; flex: 1 }
.acesso-cartao .acesso-google { min-height: 44px; border: 0; color: #171515; background: #fafafa }
.acesso-google span {
 margin-right: .35em;
 font-weight: 900;
 font-size: 1.5em;
 background: conic-gradient(#4285f4 0 33%,#34a853 33% 50%,#fbbc05 50% 70%,#ea4335 70% 91%,#4285f4 91%);
 background-clip: text;
 color: transparent;
}
.acesso-registo { justify-content: center; margin-top: 4px }
.acesso-registo button { border: 1px solid #9a7734; background: transparent; color: #ffce59 }
#acesso-status {
 width: fit-content;
 margin: 8px 0 0 auto;
 padding: 8px 12px;
 border-radius: 8px;
 color: #ffe189;
 background: #140f0de8;
 overflow-wrap: anywhere;
}
#acesso-status:empty { display: none }
.acesso-comandos {
 position: absolute;
 z-index: 1;
 top: 2.5%;
 right: 2%;
 max-width: 62%;
}
.acesso-acoes {
 display: flex;
 flex-wrap: wrap;
 justify-content: flex-end;
 gap: 8px;
 font-size: 14px;
}
.acesso-acoes button { min-height: 44px; padding: 8px 12px; border: 1px solid #9a7734; background: #140f0de8 }
.acesso-acoes button:hover, .acesso-registo button:hover { background: #253331 }
.acesso-cartao .acesso-enviar:hover { background: #ffda7e }
#acesso-overlay :is(button,input):focus-visible { outline: 2px solid #ffd43c; outline-offset: 3px }
#acesso-overlay button:disabled { opacity: .65; cursor: wait }
@media (max-width: 780px), (max-aspect-ratio: 5/4) {
 .acesso-palco {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 12px;
  width: 100%;
  min-height: 100dvh;
  aspect-ratio: auto;
  padding: max(106px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));
 }
 .acesso-arte {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  object-fit: cover;
  object-position: 27% 42%;
 }
 .acesso-palco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,transparent 17%,#100e1540 45%,#100e15c9 100%);
 }
 .acesso-reflexo { display: none }
 .acesso-comandos { position: static; order: 1; width: min(100%,430px); max-width: none }
 .acesso-acoes { justify-content: center }
 #acesso-status { margin-right: auto }
 .acesso-cartao {
  position: relative;
  inset: auto;
  transform: none;
  width: min(100%, 430px);
  max-height: none;
  padding: 18px 20px;
  background: #171f21f6;
 }
 .acesso-marca { font-size: clamp(32px, 8vw, 42px) }
 .acesso-cartao h2 { margin-bottom: 16px }
 #acesso-form { gap: 9px }
}
@media (min-aspect-ratio: 5/4) and (max-height: 580px) {
 .acesso-palco { display: block; width: 100%; min-height: 100dvh; aspect-ratio: auto; padding: 0 }
 .acesso-arte { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: center }
 .acesso-comandos {
  position: absolute;
  inset: auto auto max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  width: auto;
  max-width: 46%;
 }
 .acesso-acoes { justify-content: flex-start }
 #acesso-status { margin-left: 0 }
 .acesso-cartao {
  position: absolute;
  inset: 50% max(14px,env(safe-area-inset-right)) auto auto;
  transform: translateY(-50%);
  width: min(51%,390px);
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
 }
 .acesso-marca { font-size: 28px }
 .acesso-cartao h2 { margin: 4px 0 12px; font-size: .9rem }
 #acesso-form { gap: 7px }
 #acesso-form:has(.acesso-opcoes:not([hidden])) { grid-template-columns: repeat(2,minmax(0,1fr)) }
 #acesso-form > :not([data-acesso-email],.acesso-segredo) { grid-column: 1 / -1 }
 .acesso-campo { min-height: 44px }
 .acesso-campo input { min-height: 42px; padding: 0 7px }
 .acesso-cartao .acesso-olho { width: 36px; min-height: 42px }
 .acesso-cartao .acesso-enviar { min-height: 44px; margin: 0 }
 .acesso-registo { margin-top: 0 }
}
@media (prefers-reduced-motion: reduce) {
 .acesso-reflexo { animation: none }
}
