/* =========================================
   THΞOSTACK — estilos do site
   ========================================= */

body {
  margin: 0;
  background: #eee6e1;
}
a {
  color: #1a1a1a;
}
a:hover {
  color: #5a3a30;
}
@keyframes ts-float {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes ts-shine {
  0% {
    background-position: 160% 0;
  }
  55%,
  100% {
    background-position: -60% 0;
  }
}
.ts-float {
  animation: ts-float 5s ease-in-out infinite;
}
.ts-shine {
  animation: ts-shine 3.6s ease-in-out infinite;
}
@keyframes ts-finger {
  0%,
  100% {
    transform: rotate(calc(var(--a) * -1));
  }
  50% {
    transform: rotate(var(--a));
  }
}
.ts-finger {
  display: block;
  animation-name: ts-finger;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ts-float,
  .ts-shine,
  .ts-finger {
    animation: none;
  }
}
.ts-panel {
  transform-origin: top right;
  max-height: calc(100vh - 90px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    visibility 0s linear 0.65s;
}
.is-open .ts-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  filter: blur(0);
  transition-delay: 0s;
}
.ts-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-open .ts-item {
  opacity: 1;
  transform: none;
  transition-delay: var(--d);
}
.ts-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(236, 230, 225, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0s linear 0.55s;
}
.is-open .ts-backdrop {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.ts-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd7d2;
  text-decoration: none;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    padding-left 0.3s ease;
}
.ts-link:hover {
  padding-left: 10px;
  color: #1a1a1a;
}
.ts-input {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1.5px solid #b9b1ab;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.25s ease;
}
.ts-input:focus {
  border-bottom-color: #1a1a1a;
}
.ts-input::placeholder {
  color: #8a817b;
}
.ts-submit {
  min-height: 48px;
  background: #1a1a1a;
  color: #f4f1ee;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.25s ease;
}
.ts-submit:hover {
  background: #3a2a25;
}
.ts-bar {
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.8px;
  background: #1a1a1a;
  border-radius: 2px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ts-bar1 {
  top: 1px;
}
.ts-bar2 {
  top: 11px;
}
.is-open .ts-bar1 {
  top: 6px;
  transform: rotate(45deg);
}
.is-open .ts-bar2 {
  top: 6px;
  transform: rotate(-45deg);
}
.ts-view {
  display: none;
}
.mode-login .ts-view-login,
.mode-signup .ts-view-signup,
.mode-user .ts-view-user {
  display: flex;
}
.ts-tabs {
  display: flex;
}
.mode-user .ts-tabs {
  display: none;
}
.ts-tab {
  min-height: 44px;
  padding: 0 0 10px;
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #6b625c;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.mode-login .ts-tab-login,
.mode-signup .ts-tab-signup {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}
.ts-textbtn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #4a433e;
  text-decoration: underline;
  cursor: pointer;
}
.ts-ghost {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.ts-ghost:hover {
  background: #1a1a1a;
  color: #f4f1ee;
}
.ts-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.mode-enroll .ts-view-enroll,
.mode-mfa .ts-view-mfa {
  display: flex;
}
.mode-enroll .ts-tabs,
.mode-mfa .ts-tabs {
  display: none;
}
.ts-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6b625c;
}
.ts-or span {
  flex: 1;
  height: 1px;
  background: #ddd7d2;
}
.ts-google {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #cfc8c2;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ts-google:hover {
  border-color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(60, 40, 30, 0.08);
}
.ts-gis {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.ts-gis[hidden],
.ts-google[hidden] {
  display: none;
}
.ts-code {
  font-size: 24px;
  letter-spacing: 0.5em;
  text-align: center;
}
.ts-msg:empty {
  display: none;
}
.ts-msg {
  color: #2f5d3a;
}
.ts-msg.is-error {
  color: #a12a1f;
}
.ts-lbl-close {
  display: none;
}
.is-open .ts-lbl-open {
  display: none;
}
.is-open .ts-lbl-close {
  display: inline;
}
