/* Login / cadastro / perfil — tema claro; fundo “chat com bot” + âmbar da marca */
:root {
  color-scheme: light;
  --auth-bg: #dfe7f2;
  --auth-bg-accent: rgba(250, 182, 44, 0.18);
  --auth-card: #ffffff;
  --auth-stroke: rgba(15, 23, 42, 0.1);
  --auth-text: #000000;
  --auth-muted: #6b7280;
  --auth-input-bg: #ffffff;
  --auth-accent: #fab62c;
  --auth-accent-text: #000000;
  --auth-danger: #dc2626;
  --auth-radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

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

/* Cenário 3D: conversa com bot — claro com âmbar e profundidade mais fortes */
.auth-bg3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1180px;
  perspective-origin: 40% 36%;
  transform-style: preserve-3d;
  background:
    radial-gradient(ellipse 100% 85% at 92% -5%, rgba(250, 182, 44, 0.34), transparent 42%),
    radial-gradient(ellipse 80% 70% at -5% 105%, rgba(255, 220, 150, 0.45), transparent 48%),
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(250, 182, 44, 0.08), transparent 45%),
    linear-gradient(165deg, #ffffff 0%, #f1f5f9 38%, #dfe7f2 100%);
}

.auth-bg3d__mesh {
  position: absolute;
  inset: -15%;
  will-change: transform, opacity;
  background:
    radial-gradient(ellipse 40% 36% at 16% 28%, rgba(250, 182, 44, 0.45), transparent 58%),
    radial-gradient(ellipse 36% 40% at 82% 18%, rgba(255, 200, 90, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 44% at 52% 88%, rgba(255, 255, 255, 0.75), transparent 52%);
  filter: blur(44px);
  opacity: 0.88;
  animation: authMeshDrift 22s ease-in-out infinite;
}

.auth-bg3d__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 32% 42%, rgba(250, 182, 44, 0.18), transparent 38%),
    radial-gradient(circle at 68% 52%, rgba(255, 200, 90, 0.14), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.1), transparent 35%);
  animation: authGlowDrift 16s ease-in-out infinite;
}

@keyframes authMeshDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.82;
  }
  40% {
    transform: translate(6%, -4%) scale(1.08) rotate(2.5deg);
    opacity: 0.95;
  }
  70% {
    transform: translate(-5%, 4%) scale(1.04) rotate(-2deg);
    opacity: 0.88;
  }
}

@keyframes authGlowDrift {
  0%,
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.92;
    transform: translate(1.5%, 1%) scale(1.04) rotate(-2deg);
  }
  66% {
    opacity: 0.88;
    transform: translate(-1%, -1.5%) scale(1.02) rotate(1.5deg);
  }
}

.auth-bg3d__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 76% 66% at 50% 46%,
    transparent 28%,
    rgba(250, 182, 44, 0.04) 72%,
    rgba(15, 23, 42, 0.1) 100%
  );
  pointer-events: none;
  animation: authVignettePulse 16s ease-in-out infinite;
}

@keyframes authVignettePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.auth-bg3d__grid {
  position: absolute;
  inset: -5%;
  opacity: 0.38;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.28) 1px, transparent 1.15px);
  background-size: 32px 32px;
  transform: rotateX(72deg) translateY(42%) scale(1.5);
  transform-origin: center top;
  mask-image: radial-gradient(ellipse 85% 75% at 45% 40%, black 15%, transparent 72%);
  animation: authFloorDrift 36s ease-in-out infinite;
}

@keyframes authFloorDrift {
  0%,
  100% {
    opacity: 0.38;
    transform: rotateX(72deg) rotateZ(0deg) translateY(42%) scale(1.5) translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.46;
    transform: rotateX(71deg) rotateZ(1.4deg) translateY(41%) scale(1.52) translate3d(14px, -4px, 0);
  }
}

.auth-bg3d__beam {
  position: absolute;
  width: 120%;
  height: 140%;
  top: -20%;
  left: -10%;
  background: conic-gradient(
    from 200deg at 50% 50%,
    transparent 0deg,
    rgba(250, 182, 44, 0.14) 52deg,
    rgba(255, 200, 90, 0.08) 72deg,
    transparent 130deg
  );
  animation: authBeamTurn 32s linear infinite;
  opacity: 0.55;
}

@keyframes authBeamTurn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.auth-bg3d__chat-win {
  position: absolute;
  width: min(300px, 78vw);
  left: 6%;
  bottom: 8%;
  border-radius: 22px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(58deg) rotateY(18deg) rotateZ(-8deg) translateZ(0);
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 5px 0 rgba(15, 23, 42, 0.05),
    0 12px 32px rgba(250, 182, 44, 0.18),
    0 44px 72px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(250, 182, 44, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  animation: authChatFloat 9s ease-in-out infinite;
}

.auth-bg3d__chat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, rgba(250, 182, 44, 0.08) 0%, transparent 100%);
}

.auth-bg3d__chat-head .auth-bg3d__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(1) {
  background: rgba(255, 95, 87, 0.5);
}
.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(2) {
  background: rgba(255, 200, 90, 0.45);
}
.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(3) {
  background: rgba(82, 196, 26, 0.45);
}

.auth-bg3d__chat-head .auth-bg3d__dot {
  animation: authTrafficPulse 2.4s ease-in-out infinite;
}

.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(1) {
  animation-delay: 0s;
}
.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(2) {
  animation-delay: 0.15s;
}
.auth-bg3d__chat-head .auth-bg3d__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes authTrafficPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.75;
  }
}

.auth-bg3d__bot-pill {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 7px;
  color: #b45309;
  background: linear-gradient(180deg, rgba(250, 182, 44, 0.35), rgba(250, 182, 44, 0.18));
  border: 1px solid rgba(250, 182, 44, 0.55);
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.15);
  animation: authPillGlow 3.2s ease-in-out infinite;
}

@keyframes authPillGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 1px 2px rgba(180, 83, 9, 0.15), 0 0 0 0 rgba(250, 182, 44, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12), 0 0 14px 2px rgba(250, 182, 44, 0.25);
  }
}

.auth-bg3d__chat-body {
  padding: 16px 14px 18px;
  transform-style: preserve-3d;
}

.auth-bg3d__row {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  margin-bottom: 12px;
  transform-style: preserve-3d;
  animation: authRowFloat 5.5s ease-in-out infinite;
}

.auth-bg3d__chat-body > .auth-bg3d__row:nth-child(1) {
  animation-delay: 0s;
}

.auth-bg3d__chat-body > .auth-bg3d__row:nth-child(2) {
  animation-delay: -2.5s;
}

@keyframes authRowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -14px, 0);
  }
}

.auth-bg3d__row--user {
  justify-content: flex-end;
}

.auth-bg3d__avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ffd057, #fab62c 45%, #9a7018);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(250, 182, 44, 0.35), 0 4px 8px rgba(15, 23, 42, 0.12);
  will-change: transform;
  animation: authAvatarBob 3.8s ease-in-out infinite;
}

.auth-bg3d__avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(250, 182, 44, 0.55);
  animation: authAvatarRing 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes authAvatarBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-8deg);
  }
}

@keyframes authAvatarRing {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.auth-bg3d__bubble--bot {
  flex: 1;
  max-width: 210px;
  padding: 13px 15px 12px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(180deg, #ffffff, #e8edf3);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 3px solid #fab62c;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-style: preserve-3d;
  will-change: transform;
  animation: authBubbleNudge 4.2s ease-in-out infinite;
}

.auth-bg3d__bubble--user {
  padding: 11px 15px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(168deg, #ffd057 0%, #fab62c 40%, #d97706 100%);
  border: 1px solid rgba(180, 83, 9, 0.45);
  box-shadow: 0 8px 20px rgba(250, 182, 44, 0.35);
  transform-style: preserve-3d;
  will-change: transform;
  animation: authUserBubblePulse 3.5s ease-in-out infinite;
}

@keyframes authUserBubblePulse {
  0%,
  100% {
    transform: scale(1) translateZ(0) rotateZ(0deg);
    box-shadow: 0 8px 20px rgba(250, 182, 44, 0.35);
  }
  50% {
    transform: scale(1.06) translateZ(18px) rotateZ(-2deg);
    box-shadow: 0 16px 36px rgba(250, 182, 44, 0.55);
  }
}

.auth-bg3d__line {
  height: 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.16);
  margin-top: 9px;
}

.auth-bg3d__bubble--bot .auth-bg3d__line {
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.08),
    rgba(250, 182, 44, 0.5),
    rgba(15, 23, 42, 0.08)
  );
  background-size: 240% 100%;
  animation: authLineSweep 3.4s ease-in-out infinite;
}

.auth-bg3d__bubble--bot .auth-bg3d__line--mid {
  animation-delay: 0.45s;
  animation-duration: 3.8s;
}

.auth-bg3d__bubble--user .auth-bg3d__line--short {
  background: linear-gradient(
    90deg,
    rgba(120, 53, 15, 0.35),
    rgba(255, 255, 255, 0.65),
    rgba(120, 53, 15, 0.35)
  );
  background-size: 240% 100%;
  animation: authLineSweep 2.5s ease-in-out infinite reverse;
}

@keyframes authLineSweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.auth-bg3d__line:first-child {
  margin-top: 0;
}

.auth-bg3d__line--wide {
  width: 100%;
}

.auth-bg3d__line--mid {
  width: 74%;
}

.auth-bg3d__line--short {
  width: 46%;
  margin-top: 0;
  height: 7px;
  background: rgba(120, 53, 15, 0.55);
}

.auth-bg3d__typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  margin-left: 45px;
  width: fit-content;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 182, 44, 0.2), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(250, 182, 44, 0.35);
  box-shadow: 0 4px 12px rgba(250, 182, 44, 0.12);
  animation: authTypingBar 5s ease-in-out infinite, authTypingSway 6.5s ease-in-out infinite;
}

@keyframes authTypingSway {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -10px, 0);
  }
}

.auth-bg3d__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fab62c, #d97706);
  box-shadow: 0 0 8px rgba(250, 182, 44, 0.5);
  animation: authDotBounce 0.85s ease-in-out infinite, authDotWobble 2.2s ease-in-out infinite;
}

@keyframes authDotWobble {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

.auth-bg3d__typing span:nth-child(2) {
  animation-delay: 0.14s;
}
.auth-bg3d__typing span:nth-child(3) {
  animation-delay: 0.28s;
}

.auth-bg3d__cmd {
  position: absolute;
  right: 10%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  font-weight: 700;
  color: #c2410c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 24px rgba(250, 182, 44, 0.35);
  letter-spacing: 0.02em;
  animation: authCmdPulse 8s ease-in-out infinite, authCmdSway 10s ease-in-out infinite;
}

.auth-bg3d__cmd::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 70%;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, #fab62c, rgba(250, 182, 44, 0.15));
}

.auth-bg3d__cmd::after {
  content: "";
  width: 3px;
  height: 0.85em;
  margin-left: 6px;
  border-radius: 1px;
  background: #fab62c;
  box-shadow: 0 0 10px rgba(250, 182, 44, 0.6);
  animation: authCursorBlink 1.05s step-end infinite;
}

@keyframes authCmdSway {
  0%,
  100% {
    transform: rotateX(12deg) rotateZ(-8deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateX(8deg) rotateZ(-14deg) translate3d(-16px, 12px, 0);
  }
}

@keyframes authCursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.auth-bg3d__plane {
  position: absolute;
  top: 14%;
  right: 11%;
  width: 56px;
  height: 56px;
  background: linear-gradient(148deg, #ffe066, #fab62c 45%, #b45309);
  clip-path: polygon(6% 88%, 50% 6%, 94% 78%, 50% 62%);
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.2)) drop-shadow(0 0 18px rgba(250, 182, 44, 0.45));
  transform: rotateX(22deg) rotate(-18deg);
  opacity: 1;
  will-change: transform, filter;
  animation: authPlaneDrift 12s ease-in-out infinite;
}

.auth-bg3d__shimmer {
  position: absolute;
  width: 50%;
  height: 200%;
  top: -45%;
  left: -55%;
  background: linear-gradient(
    108deg,
    transparent 34%,
    rgba(250, 182, 44, 0.28) 47%,
    rgba(255, 255, 255, 0.65) 51%,
    rgba(250, 182, 44, 0.15) 56%,
    transparent 66%
  );
  transform: rotate(26deg);
  animation: authShimmerSweep 7s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes authShimmerSweep {
  0%,
  100% {
    transform: rotate(26deg) translate3d(-30%, 0, 0);
    opacity: 0;
  }
  20% {
    opacity: 0.65;
  }
  50% {
    transform: rotate(26deg) translate3d(200%, 4%, 0);
    opacity: 0.55;
  }
}

@keyframes authChatFloat {
  0%,
  100% {
    transform: rotateX(58deg) rotateY(18deg) rotateZ(-8deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotateX(54deg) rotateY(14deg) rotateZ(-12deg) translate3d(12px, -16px, 28px);
  }
  50% {
    transform: rotateX(50deg) rotateY(11deg) rotateZ(-16deg) translate3d(22px, -26px, 52px);
  }
  75% {
    transform: rotateX(55deg) rotateY(15deg) rotateZ(-11deg) translate3d(10px, -12px, 32px);
  }
}

@keyframes authBubbleNudge {
  0%,
  100% {
    transform: translateZ(0) rotateY(0deg) rotateX(0deg);
  }
  33% {
    transform: translateZ(22px) rotateY(-5deg) rotateX(2deg);
  }
  66% {
    transform: translateZ(12px) rotateY(6deg) rotateX(-2deg);
  }
}

@keyframes authTypingBar {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes authDotBounce {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-7px) scale(1.12);
    opacity: 1;
  }
}

@keyframes authCmdPulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.75;
    filter: brightness(1.15);
  }
}

@keyframes authPlaneDrift {
  0%,
  100% {
    transform: rotateX(22deg) rotate(-18deg) translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.2)) drop-shadow(0 0 18px rgba(250, 182, 44, 0.45));
  }
  33% {
    transform: rotateX(14deg) rotate(-10deg) translate3d(-14px, 16px, 26px) scale(1.08) rotate(6deg);
    filter: drop-shadow(0 20px 32px rgba(15, 23, 42, 0.22)) drop-shadow(0 0 32px rgba(250, 182, 44, 0.7));
  }
  66% {
    transform: rotateX(28deg) rotate(-26deg) translate3d(10px, -10px, 18px) scale(0.96) rotate(-5deg);
    filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18)) drop-shadow(0 0 16px rgba(250, 182, 44, 0.38));
  }
}

@media (max-width: 540px) {
  .auth-bg3d__chat-win {
    width: min(220px, 82vw);
    left: 2%;
    bottom: 4%;
  }

  .auth-bg3d__plane {
    width: 44px;
    height: 44px;
    top: 10%;
    opacity: 0.95;
  }

  .auth-bg3d__cmd {
    right: 6%;
    bottom: 18%;
    font-size: 1rem;
    opacity: 0.85;
  }
}

@media (max-width: 380px) {
  .auth-bg3d__beam {
    opacity: 0.38;
  }
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  position: relative;
  color: var(--auth-text);
  background: var(--auth-bg);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  animation: authCardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.auth-card {
  width: 100%;
  padding: 2rem 1.65rem;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-stroke);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 20px 44px -14px rgba(15, 23, 42, 0.1);
}

.auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--auth-text);
}

.auth-lead {
  margin: 0 0 1.35rem;
  font-size: 0.94rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--auth-text);
  opacity: 1;
}

.auth-field input {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
  color: var(--auth-muted);
  opacity: 1;
}

.auth-field input:hover {
  border-color: rgba(15, 23, 42, 0.22);
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(250, 182, 44, 0.85);
  box-shadow: 0 0 0 3px rgba(250, 182, 44, 0.22);
}

.auth-password-wrap {
  position: relative;
  width: 100%;
}

.auth-password-wrap input {
  width: 100%;
  padding-right: 2.65rem;
  box-sizing: border-box;
}

.auth-password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover {
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.06);
}

.auth-password-toggle:focus {
  outline: none;
}

.auth-password-toggle:focus-visible {
  color: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 2px rgba(250, 182, 44, 0.55);
}

.auth-password-toggle__icons {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.auth-password-toggle__icons svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

/* Só um ícone visível (especificidade acima de .auth-password-toggle__icons svg) */
.auth-password-toggle__icons .auth-password-toggle__eye-off {
  display: none;
}

.auth-password-toggle--plain .auth-password-toggle__icons .auth-password-toggle__eye {
  display: none;
}

.auth-password-toggle--plain .auth-password-toggle__icons .auth-password-toggle__eye-off {
  display: block;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  background: var(--auth-accent);
  color: var(--auth-accent-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: filter 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
}

.auth-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.auth-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--auth-text);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: none;
  font-weight: 650;
}

.auth-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
}

.auth-footer {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
  color: var(--auth-muted);
  text-align: center;
  line-height: 1.45;
}

.auth-footer a {
  color: #6b7280;
  font-weight: 750;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #4b5563;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-footer__accent,
.auth-footer a.auth-footer__accent {
  color: #b45309 !important;
  font-weight: 800;
}

.auth-footer__accent:hover,
.auth-footer a.auth-footer__accent:hover {
  color: #92400e !important;
  text-decoration: underline;
}

.auth-msg {
  min-height: 1.35rem;
  margin: -0.25rem 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--auth-danger);
}

.auth-perfil-dl {
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.auth-perfil-dl div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-perfil-dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.auth-perfil-dl dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--auth-text);
}

.auth-card--nested {
  margin-top: 0.75rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.auth-subtitle {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--auth-text);
}

.auth-h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--auth-text);
}

.auth-stack {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-stack:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.auth-actions--tight {
  margin-top: 0.35rem;
}

@media (max-width: 380px) {
  .auth-card {
    padding: 1.5rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .auth-bg3d__mesh,
  .auth-bg3d__glow,
  .auth-bg3d__vignette,
  .auth-bg3d__grid,
  .auth-bg3d__beam,
  .auth-bg3d__chat-win,
  .auth-bg3d__chat-head .auth-bg3d__dot,
  .auth-bg3d__bot-pill,
  .auth-bg3d__row,
  .auth-bg3d__avatar,
  .auth-bg3d__avatar::after,
  .auth-bg3d__bubble--bot,
  .auth-bg3d__bubble--bot .auth-bg3d__line,
  .auth-bg3d__bubble--user,
  .auth-bg3d__bubble--user .auth-bg3d__line--short,
  .auth-bg3d__typing,
  .auth-bg3d__typing span,
  .auth-bg3d__cmd,
  .auth-bg3d__cmd::after,
  .auth-bg3d__plane,
  .auth-bg3d__shimmer {
    animation: none !important;
  }

  .auth-bg3d__avatar::after {
    opacity: 0;
  }

  .auth-bg3d__cmd::after {
    opacity: 0;
  }
}
