/**
 * Login — layout Seek Key (formulário + mural animado de capas).
 * Página isolada: sem header/footer, viewport fixo, sem scroll.
 */

html:has(body.is-login-page) {
  overflow: hidden;
  height: 100%;
}

body.is-login-page {
  background: #131316 !important;
  overflow: hidden !important;
  height: 100dvh;
  max-height: 100dvh;
}

body.is-login-page .grid-background,
body.is-login-page .custom-bg-mask {
  opacity: 0 !important;
}

body.is-login-page #site-header,
body.is-login-page #top-announce,
body.is-login-page div.mt-auto:has(footer),
body.is-login-page footer {
  display: none !important;
}

body.is-login-page main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.login-seekkey {
  flex: 1 1 auto;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  background: #131316;
  overflow: hidden;
}

.login-seekkey__inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .login-seekkey__inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 0;
  }
}

/* ── Formulário ── */
.login-seekkey__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .login-seekkey__form-side {
    padding: 2rem 2.5rem 2rem 3rem;
    justify-content: center;
  }
}

.login-seekkey__form-wrap {
  width: 100%;
  max-width: 26rem;
}

.login-seekkey__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.login-seekkey__brand img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.login-seekkey__heading {
  margin: 0 0 0.375rem;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.login-seekkey__subheading {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.55);
  text-align: center;
}

.login-seekkey__panel {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 1rem;
  background: rgb(18 18 22 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}

.login-seekkey__panel .login-seekkey__social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.login-seekkey__panel .login-seekkey__social-btn:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.16);
}

.login-seekkey__panel .login-seekkey__social-btn:active {
  transform: scale(0.98);
}

.login-seekkey__divider {
  position: relative;
  margin: 1.375rem 0;
}

.login-seekkey__divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgb(255 255 255 / 0.08);
}

.login-seekkey__divider span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.45);
  background: rgb(18 18 22);
}

.login-seekkey__panel label {
  color: rgb(255 255 255 / 0.88);
}

.login-seekkey__panel input:not([type='checkbox']) {
  background: rgb(255 255 255 / 0.04) !important;
  border-color: rgb(255 255 255 / 0.1) !important;
  color: #fff !important;
}

.login-seekkey__panel input:not([type='checkbox'])::placeholder {
  color: rgb(255 255 255 / 0.35);
}

.login-seekkey__panel .otp-input {
  background: rgb(255 255 255 / 0.04) !important;
  border-color: rgb(255 255 255 / 0.12) !important;
  color: #fff !important;
}

.login-seekkey__panel .submit-button {
  background: #3b82f6 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgb(59 130 246 / 0.35);
}

.login-seekkey__panel .submit-button:hover:not(:disabled) {
  background: #2563eb !important;
}

.login-seekkey__panel #back-to-email {
  color: rgb(255 255 255 / 0.55);
}

/* ── Mural de capas (direita) ── */
.login-seekkey__wall {
  display: none;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgb(59 130 246 / 0.12), transparent 55%),
    #131316;
}

@media (min-width: 1024px) {
  .login-seekkey__wall {
    display: block;
  }
}

.login-seekkey__wall::before,
.login-seekkey__wall::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.login-seekkey__wall::before {
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(to right, #131316 0%, rgb(19 19 22 / 0.85) 45%, transparent 100%);
}

.login-seekkey__wall::after {
  inset: 0 0 0 0;
  background:
    linear-gradient(to bottom, #131316 0%, transparent 12%, transparent 88%, #131316 100%),
    linear-gradient(to right, transparent 70%, #131316 100%);
}

.login-seekkey__wall-perspective {
  position: absolute;
  inset: -4% -4% -4% -10%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 42% 50%;
}

.login-seekkey__wall-grid {
  display: flex;
  gap: 0.875rem;
  transform: rotateY(-22deg) rotateX(6deg) scale(1.06);
  transform-style: preserve-3d;
  will-change: transform;
}

.login-seekkey__column {
  flex: 0 0 9.5rem;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.login-seekkey__column-track {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  animation: login-seekkey-wall-scroll var(--login-col-duration, 38s) linear infinite;
  animation-delay: var(--login-col-delay, 0s);
}

.login-seekkey__column--reverse .login-seekkey__column-track {
  animation-direction: reverse;
}

.login-seekkey__cover {
  flex: 0 0 auto;
  width: 9.5rem;
  aspect-ratio: 2 / 3;
  border-radius: 0.625rem;
  overflow: hidden;
  background: rgb(22 22 26);
  box-shadow:
    0 8px 24px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(255 255 255 / 0.06);
}

.login-seekkey__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-seekkey__cover--placeholder {
  background: linear-gradient(
    145deg,
    hsl(var(--login-cover-hue, 220) 35% 28%) 0%,
    hsl(calc(var(--login-cover-hue, 220) + 18) 28% 18%) 100%
  );
}

@keyframes login-seekkey-wall-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-seekkey__column-track {
    animation: none !important;
  }
}