/* esqueci-senha, redefinir-senha, verificar-email — paridade web-static */

.auth-flow-root {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(242, 213, 122, 0.16) 0%, rgba(242, 213, 122, 0) 28%),
    radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 30%),
    radial-gradient(circle at 50% 78%, rgba(56, 189, 248, 0.1) 0%, rgba(56, 189, 248, 0) 26%),
    linear-gradient(180deg, #343434 0%, #191919 42%, #0d0d0d 100%);
  color: #f5f7fb;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.auth-flow-root::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 0;
}

.auth-flow-root h1,
.auth-flow-root h2,
.auth-flow-root h3,
.auth-flow-root .heading-gold {
  font-family: 'Cinzel', serif;
}

.auth-flow-root .glass {
  background: linear-gradient(180deg, rgba(52, 52, 52, 0.74) 0%, rgba(18, 18, 18, 0.82) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(242, 213, 122, 0.2);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-flow-root .gold-text-gradient {
  background: linear-gradient(135deg, #fff3bf 0%, #f2d57a 24%, #d4af37 55%, #ffe08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}

.auth-flow-root .btn-gold {
  background: linear-gradient(135deg, #fff0ad 0%, #f2d57a 18%, #d4af37 56%, #c8922e 100%);
  color: #07111f;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 16px 40px rgba(212, 175, 55, 0.28),
    0 0 28px rgba(242, 213, 122, 0.18);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  line-height: 1.2;
}

.auth-flow-root .btn-gold.compact-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-flow-root .btn-gold.footer-btn {
  min-width: 96px;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-flow-root .btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.auth-flow-root .btn-gold:hover::before {
  transform: translateX(120%);
}

.auth-flow-root .btn-gold:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 22px 46px rgba(212, 175, 55, 0.34),
    0 0 34px rgba(242, 213, 122, 0.26);
}

.auth-flow-root .hero-glow {
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  z-index: 0;
}

.auth-flow-root .hero-glow.one {
  width: 340px;
  height: 340px;
  top: 14%;
  left: -90px;
  background: rgba(242, 213, 122, 0.18);
}

.auth-flow-root .hero-glow.two {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: 14%;
  background: rgba(56, 189, 248, 0.14);
}

.auth-flow-root .auth-card-wrap {
  position: relative;
  padding: 2px;
  border-radius: 2.6rem;
  isolation: isolate;
}

.auth-flow-root .auth-card-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(242, 213, 122, 0.08);
  box-shadow:
    0 0 0 1px rgba(242, 213, 122, 0.1),
    0 0 16px rgba(212, 175, 55, 0.05);
  z-index: 0;
  pointer-events: none;
}

.auth-flow-root .auth-card-wrap::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 243, 191, 0.15) 0%, rgba(242, 213, 122, 1) 50%, rgba(201, 146, 46, 0.15) 100%);
  box-shadow:
    0 0 6px rgba(242, 213, 122, 0.55),
    0 0 12px rgba(212, 175, 55, 0.28);
  pointer-events: none;
  z-index: 3;
  animation: auth-flow-neon-orbit 6s linear infinite;
  transform: translate(0, -1px);
  transform-origin: center;
}

@keyframes auth-flow-neon-orbit {
  0% { top: 0; left: 0; transform: translate(0, -1px) rotate(0deg); }
  24.99% { top: 0; left: 100%; transform: translate(-30px, -1px) rotate(0deg); }
  25% { top: 0; left: 100%; transform: translate(-16px, 0) rotate(90deg); }
  49.99% { top: 100%; left: 100%; transform: translate(-16px, -30px) rotate(90deg); }
  50% { top: 100%; left: 100%; transform: translate(-30px, -2px) rotate(0deg); }
  74.99% { top: 100%; left: 0; transform: translate(0, -2px) rotate(0deg); }
  75% { top: 100%; left: 0; transform: translate(-14px, -30px) rotate(90deg); }
  99.99% { top: 0; left: 0; transform: translate(-14px, 0) rotate(90deg); }
  100% { top: 0; left: 0; transform: translate(0, -1px) rotate(0deg); }
}

.auth-flow-root .auth-card {
  background: linear-gradient(180deg, rgba(58, 58, 58, 0.55) 0%, rgba(22, 22, 22, 0.84) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(242, 213, 122, 0.16);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 0 50px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.auth-flow-root .auth-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.auth-flow-root .auth-card > * {
  position: relative;
  z-index: 2;
}

.auth-flow-root .auth-card-wrap:hover::after {
  animation-duration: 4.8s;
  box-shadow:
    0 0 8px rgba(242, 213, 122, 0.72),
    0 0 14px rgba(212, 175, 55, 0.36);
}

.auth-flow-root .signin-input {
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.42) 0%, rgba(22, 22, 22, 0.58) 100%);
  border: 1px solid rgba(242, 213, 122, 0.16);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: #ffffff;
  transition: all 0.28s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-flow-root .signin-input::placeholder {
  color: #8d96a8;
}

.auth-flow-root .signin-input:hover {
  border-color: rgba(242, 213, 122, 0.28);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.5) 0%, rgba(28, 28, 28, 0.62) 100%);
}

.auth-flow-root .signin-input:focus {
  outline: none;
  border-color: rgba(242, 213, 122, 0.52);
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.08),
    0 0 24px rgba(242, 213, 122, 0.12);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.58) 0%, rgba(32, 32, 32, 0.68) 100%);
}

.auth-flow-root .title-glow {
  text-shadow:
    0 0 18px rgba(242, 213, 122, 0.12),
    0 0 34px rgba(212, 175, 55, 0.1);
}

.auth-flow-root .highlight-text {
  color: #f7f3e8;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.05),
    0 0 24px rgba(242, 213, 122, 0.06);
}

.auth-flow-root .soft-gold-text {
  color: #f2d57a;
  text-shadow:
    0 0 14px rgba(242, 213, 122, 0.12),
    0 0 28px rgba(212, 175, 55, 0.08);
}

.auth-flow-root .muted-bright {
  color: #d6dde9;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.03);
}

.auth-flow-root .auth-ou-pill {
  background: #2b2b2b;
  color: #e5d39a;
}

/* Modal idiomas + drawer mobile (footer-languages compatível) */
.auth-flow-root .language-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.auth-flow-root .language-modal.active {
  display: flex;
}
.auth-flow-root .language-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.auth-flow-root .language-modal-content {
  position: relative;
  background: #2b2b2b;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}
.auth-flow-root .language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.auth-flow-root .lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 194, 217, 0.12);
  color: #f5f7fb;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: left;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.auth-flow-root .lang-btn:hover,
.auth-flow-root .lang-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
}
.auth-flow-root .language-search {
  width: 100%;
  background: rgba(11, 24, 48, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  color: #f5f7fb;
  margin-bottom: 2rem;
}
.auth-flow-root .language-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.auth-flow-root .mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.auth-flow-root .mob-overlay.open {
  display: block;
}
.auth-flow-root .mob-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  bottom: 0;
  width: 280px;
  background: rgba(43, 43, 43, 0.98);
  border-right: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 300;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.auth-flow-root .mob-drawer.open {
  left: 0 !important;
}
.auth-flow-root .mob-drw-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.auth-flow-root .mob-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.auth-flow-root .mob-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  background: linear-gradient(135deg, #d4af37 0%, #f2d57a 50%, #c8922e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.auth-flow-root .mob-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-flow-root .mob-close:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
}
.auth-flow-root .mob-drw-nav {
  padding: 12px 10px 10px;
  flex: 1;
}
.auth-flow-root .mob-section-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 10px 8px;
  margin-top: 12px;
  display: block;
}
.auth-flow-root .mob-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.auth-flow-root .mob-link:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #fff;
}
.auth-flow-root .mob-link.active {
  background: rgba(212, 175, 55, 0.14);
  color: #d4af37;
}
.auth-flow-root .mob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}
.auth-flow-root .mob-link.active .mob-dot {
  opacity: 1;
}
.auth-flow-root .mob-drw-actions {
  padding: 12px 10px 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}
.auth-flow-root .mob-action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}
.auth-flow-root .mob-action-link.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-flow-root .mob-action-link.primary {
  background: linear-gradient(135deg, #d4af37 0%, #f2d57a 50%, #c8922e 100%);
  color: #07111f;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.22);
}

@media (max-width: 900px) {
  .auth-flow-root header > div {
    padding: 0.9rem 1rem !important;
  }
  .auth-flow-root header img {
    height: 42px !important;
  }
  .auth-flow-root header button[aria-label="Menu"] {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(26, 47, 77, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.18);
  }
  .auth-flow-root header button[aria-label="Menu"] svg {
    width: 24px;
    height: 24px;
  }
}
