/* Queiroz Experience — check-in / acesso
   Fundo e artes oficiais não são alterados; só o palco e o formulário. */

:root {
  --exp-navy: #02061f;
  --exp-ink: #f7f4ef;
  --exp-mist: rgba(247, 244, 239, 0.64);
  --exp-line: rgba(247, 244, 239, 0.22);
  --exp-signal: #e30613;
  --exp-pill: #ff2d4a;
  --exp-pill-ink: #fff;
  --exp-focus: #ffd6dc;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.exp-login,
.exp-acesso {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  background-color: var(--exp-navy);
  background-image: url("../images/fundo.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--exp-ink);
  font-family: Sora, "Segoe UI", sans-serif;
}

.exp-login {
  overflow: hidden;
}

.exp-login__stage {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  padding:
    max(0.5rem, env(safe-area-inset-top))
    max(0.5rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
  overflow: hidden;
  text-decoration: none;
}

.exp-login__stage:focus-visible {
  outline: 3px solid var(--exp-focus);
  outline-offset: -8px;
}

.exp-login__art {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 900px) {
  .exp-login__art {
    max-height: min(100%, 92vh);
  }
}

.exp-acesso {
  display: grid;
  place-items: center;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.exp-acesso__card {
  width: min(28rem, 100%);
  text-align: center;
}

.exp-acesso__logo {
  display: block;
  width: min(16.5rem, 72vw);
  height: auto;
  margin: 0 auto 2rem;
}

.exp-acesso__form {
  display: grid;
  gap: 1.15rem;
  text-align: left;
}

.exp-acesso__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--exp-mist);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-acesso__field {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.15rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--exp-line);
  border-radius: 0;
  background: transparent;
  color: var(--exp-ink);
  font: 400 1.05rem/1.3 Sora, "Segoe UI", sans-serif;
  caret-color: var(--exp-pill);
}

.exp-acesso__field::placeholder {
  color: rgba(247, 244, 239, 0.35);
}

.exp-acesso__field:focus {
  outline: none;
  border-bottom-color: var(--exp-pill);
}

.exp-acesso__erro {
  min-height: 1.25rem;
  margin: 0;
  color: #ffb3bc;
  font-size: 0.88rem;
  line-height: 1.35;
}

.exp-acesso__erro:empty {
  display: none;
}

.exp-acesso__btn,
.exp-acesso__btn-load {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: auto;
  min-width: min(14.5rem, 100%);
  min-height: 3.15rem;
  padding: 0.75rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--exp-pill);
  color: var(--exp-pill-ink);
  font: 700 0.92rem/1 Sora, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.exp-acesso__btn:hover,
.exp-acesso__btn:focus-visible {
  filter: brightness(1.06);
}

.exp-acesso__btn:focus-visible {
  outline: 3px solid var(--exp-focus);
  outline-offset: 3px;
}

.exp-acesso__btn:disabled,
.exp-acesso__btn-load {
  cursor: wait;
  opacity: 0.88;
}

.exp-acesso__spin {
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: exp-spin 0.7s linear infinite;
}

@keyframes exp-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .exp-acesso__logo {
    width: min(18rem, 40vw);
    margin-bottom: 2.4rem;
  }
}

.exp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  place-items: center;
  padding: 1.25rem;
}

.exp-modal.is-open {
  display: grid;
}

.exp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 31, 0.72);
}

.exp-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(22.5rem, 100%);
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--exp-line);
  background: #071033;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.exp-modal__titulo {
  margin: 0 0 1.2rem;
  color: var(--exp-ink);
  font: 600 1.05rem/1.3 Sora, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.exp-modal__bloco {
  display: none;
}

.exp-modal.is-login .exp-modal__bloco--login,
.exp-modal.is-nova .exp-modal__bloco--nova {
  display: block;
}

.exp-modal__campo + .exp-modal__campo {
  margin-top: 1rem;
}

.exp-modal__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.exp-modal__btn {
  min-height: 2.7rem;
  padding: 0.55rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--exp-pill);
  color: var(--exp-pill-ink);
  font: 700 0.78rem/1 Sora, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.exp-modal__btn--ghost {
  background: transparent;
  color: var(--exp-ink);
  border: 1px solid var(--exp-line);
}

.exp-modal__btn:focus-visible {
  outline: 3px solid var(--exp-focus);
  outline-offset: 3px;
}

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