/* ===========================================================
   VTT identity — glassmorphism (reset password)
   =========================================================== */

* {
  box-sizing: border-box;
}

:root {
  --page: radial-gradient(circle at 18% 22%, #f1fcfb, #ffffff 55%);
  --card-bg: rgba(255, 255, 255, 0.62);
  --card-border: rgba(19, 176, 163, 0.18);
  --card-shadow:
    0 30px 60px -22px rgba(12, 128, 119, 0.28),
    0 2px 8px rgba(12, 128, 119, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --ink: #063e3a;
  --muted: rgba(6, 62, 58, 0.72);
  --label: rgba(6, 62, 58, 0.7);
  --field-line: rgba(12, 128, 119, 0.28);
  --icon: #0c8077;
  --logo-bg: transparent;
  --foot: rgba(6, 62, 58, 0.55);
  --link: #0a766c;
  --link-hover: #063e3a;
  --toggle-bg: rgba(255, 255, 255, 0.6);
  --toggle-border: rgba(19, 176, 163, 0.2);
  --modal-bg: rgba(255, 255, 255, 0.9);
  --modal-border: rgba(19, 176, 163, 0.2);
}

body.vtt-dark {
  --page: radial-gradient(circle at 18% 22%, #2a2d34, #1c1e23 62%);
  --card-bg: rgba(40, 43, 50, 0.62);
  --card-border: rgba(95, 201, 192, 0.18);
  --card-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ink: #eef1f4;
  --muted: rgba(238, 241, 244, 0.68);
  --label: rgba(238, 241, 244, 0.55);
  --field-line: rgba(150, 230, 222, 0.3);
  --icon: #5fc9c0;
  --logo-bg: rgba(255, 255, 255, 0.92);
  --foot: rgba(238, 241, 244, 0.45);
  --link: #7fd8cf;
  --link-hover: #eef1f4;
  --toggle-bg: rgba(28, 30, 35, 0.96);
  --toggle-border: rgba(95, 201, 192, 0.22);
  --modal-bg: rgba(34, 37, 43, 0.94);
  --modal-border: rgba(95, 201, 192, 0.22);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  transition: background 0.5s ease;
}

input {
  font-family: inherit;
}
input::placeholder {
  color: #9fb3b1;
}

/* ---------- keyframes ---------- */
@keyframes vtt-fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes vtt-pop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes vtt-floatA {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 0.55;
  }
  25% {
    transform: translate(18px, -34px) rotate(60deg) scale(1.15);
    opacity: 1;
  }
  50% {
    transform: translate(-14px, -58px) rotate(140deg) scale(0.9);
    opacity: 0.7;
  }
  75% {
    transform: translate(-22px, -26px) rotate(220deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
    opacity: 0.55;
  }
}
@keyframes vtt-floatB {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-20px, 30px) rotate(-70deg) scale(0.88);
    opacity: 1;
  }
  50% {
    transform: translate(16px, 54px) rotate(-150deg) scale(1.18);
    opacity: 0.7;
  }
  75% {
    transform: translate(24px, 22px) rotate(-250deg) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(-360deg) scale(1);
    opacity: 0.6;
  }
}
@keyframes vtt-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.12);
  }
  66% {
    transform: translate(-30px, 25px) scale(0.93);
  }
}
@keyframes vtt-shimmer {
  0% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(220%);
  }
}
@keyframes vtt-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes vtt-modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- page + background layer ---------- */
.vtt-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.vtt-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.vtt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.vtt-blob.a {
  top: -180px;
  left: -140px;
  width: 540px;
  height: 540px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(19, 176, 163, 0.16),
    rgba(19, 176, 163, 0) 68%
  );
  animation: vtt-blob 22s ease-in-out infinite;
}
.vtt-blob.b {
  bottom: -200px;
  right: -160px;
  width: 580px;
  height: 580px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(95, 201, 192, 0.18),
    rgba(95, 201, 192, 0) 66%
  );
  animation: vtt-blob 26s ease-in-out infinite reverse;
}
.vtt-tri {
  position: absolute;
  width: 0;
  height: 0;
}
.vtt-tri.t1 {
  top: 12%;
  left: 9%;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 46px solid rgba(19, 176, 163, 0.16);
  animation: vtt-floatA 11s ease-in-out infinite;
}
.vtt-tri.t2 {
  top: 22%;
  left: 18%;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid rgba(95, 201, 192, 0.3);
  animation: vtt-floatB 9s ease-in-out infinite;
}
.vtt-tri.t3 {
  top: 68%;
  left: 7%;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 34px solid rgba(19, 176, 163, 0.13);
  animation: vtt-floatB 13s ease-in-out infinite 1.5s;
}
.vtt-tri.t4 {
  top: 80%;
  left: 22%;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid rgba(95, 201, 192, 0.32);
  animation: vtt-floatA 10s ease-in-out infinite;
}
.vtt-tri.t5 {
  top: 14%;
  right: 12%;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 31px solid rgba(19, 176, 163, 0.15);
  animation: vtt-floatA 12s ease-in-out infinite 0.8s;
}
.vtt-tri.t6 {
  top: 30%;
  right: 7%;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid rgba(95, 201, 192, 0.22);
  animation: vtt-floatB 15s ease-in-out infinite;
}
.vtt-tri.t7 {
  top: 74%;
  right: 14%;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid rgba(19, 176, 163, 0.16);
  animation: vtt-floatA 9.5s ease-in-out infinite 2s;
}
.vtt-tri.t8 {
  top: 86%;
  right: 24%;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid rgba(95, 201, 192, 0.28);
  animation: vtt-floatB 11.5s ease-in-out infinite;
}

/* ---------- theme toggle ---------- */
.vtt-theme-toggle {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--icon);
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px -10px rgba(12, 128, 119, 0.4);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s;
}
.vtt-theme-toggle:hover {
  transform: rotate(-18deg) scale(1.06);
}
.vtt-icon-sun {
  display: none;
}
.vtt-icon-moon {
  display: block;
}
body.vtt-dark .vtt-icon-sun {
  display: block;
}
body.vtt-dark .vtt-icon-moon {
  display: none;
}

/* ---------- card ---------- */
.vtt-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 530px;
  padding: 46px 42px 38px;
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition:
    background 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  animation: vtt-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.vtt-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.08s;
}
.vtt-logo-box {
  border-radius: 16px;
  padding: 10px 16px;
}
.vtt-logo-box img {
  display: block;
  width: 184px;
  height: auto;
}
.vtt-title {
  margin: 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.4px;
  background: linear-gradient(120deg, #0c8077, #13b0a3 60%, #16c4b5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.16s;
}
.vtt-subtitle {
  margin: 8px 0 30px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.5s ease;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.22s;
}

/* ---------- fields ---------- */
.vtt-field {
  margin-bottom: 18px;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.vtt-field.f1 {
  animation-delay: 0.3s;
}
.vtt-field.f2 {
  animation-delay: 0.38s;
}
.vtt-field.f3 {
  animation-delay: 0.42s;
}
.vtt-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--label);
  transition: color 0.5s ease;
  margin: 0 0 8px 4px;
}
.vtt-field-box {
  position: relative;
}
.vtt-field-icon {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--icon);
  transition: color 0.5s ease;
  pointer-events: none;
}
.vtt-input,
input.form__input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 36px;
  border: none;
  border-bottom: 1.5px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition:
    color 0.5s ease,
    border-color 0.5s ease;
}
.vtt-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0c8077, #13b0a3);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.vtt-input:focus ~ .vtt-underline {
  transform: scaleX(1);
}

/* ---------- submit / link / foot / error ---------- */
.vtt-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.5s;
}
.vtt-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(120deg, #0c8077, #13b0a3 55%, #0e9a8f);
  box-shadow: 0 16px 30px -10px rgba(8, 90, 82, 0.7);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s;
}
.vtt-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -10px rgba(8, 90, 82, 0.8);
}
.vtt-submit:active {
  transform: translateY(0) scale(0.99);
}
.vtt-submit .shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  animation: vtt-shimmer 4.5s ease-in-out infinite 1s;
  pointer-events: none;
}
.vtt-submit .label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.vtt-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
.vtt-link:hover {
  color: var(--link-hover);
}
.vtt-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--foot);
  transition: color 0.5s ease;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.56s;
}

#resetError {
  font-family: "Inter", sans-serif;
  color: #e5484d;
  margin: 0 0 18px;
  text-align: center;
  font-size: 13.5px;
  display: none;
  width: 100%;
}

/* ---------- modais (mantém .modal-overlay / .show) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 30, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.show {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--modal-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--modal-border);
  border-radius: 24px;
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  max-width: 400px;
  width: 100%;
  font-family: "Inter", sans-serif;
  animation: vtt-modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h2 {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  transition: color 0.5s ease;
}
.modal-content p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1.4rem;
  transition: color 0.5s ease;
}

.modal-content input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-bottom: 1.5px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  text-align: center;
}
.modal-content input:focus {
  border-bottom-color: #13b0a3;
}

.modal-content button {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  padding: 0 2rem;
  height: 50px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(120deg, #0c8077, #13b0a3 55%, #0e9a8f);
  box-shadow: 0 14px 26px -10px rgba(8, 90, 82, 0.6);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s;
}
.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -10px rgba(8, 90, 82, 0.75);
}
.modal-content button:active {
  transform: translateY(0) scale(0.99);
}

.modal-bar {
  display: none;
}

.senha-wrapper {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
}
.senha-wrapper span {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: 1.5px dashed var(--field-line);
  background: rgba(19, 176, 163, 0.08);
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--ink);
}

/* loading */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(19, 176, 163, 0.18);
  border-top-color: #13b0a3;
  border-radius: 50%;
  animation: vtt-spin 0.8s linear infinite;
}
.loading-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .vtt-page {
    padding: 18px;
  }
  .vtt-card {
    padding: 38px 26px 30px;
  }
  .vtt-logo-box img {
    width: 158px;
  }
  .modal-content {
    padding: 1.8rem 1.4rem;
  }
}

/* compacta em telas baixas (notebooks) para o card caber sem rolagem */
@media (max-height: 860px) {
  .vtt-page {
    padding: 16px;
  }
  .vtt-card {
    padding: 26px 36px 24px;
  }
  .vtt-logo-row {
    margin-bottom: 14px;
  }
  .vtt-logo-box {
    padding: 8px 14px;
  }
  .vtt-logo-box img {
    width: 132px;
  }
  .vtt-title {
    font-size: 21px;
  }
  .vtt-subtitle {
    margin: 6px 0 18px;
  }
  .vtt-field {
    margin-bottom: 12px;
  }
  .vtt-field-label {
    margin-bottom: 5px;
  }
  .vtt-input,
  input.form__input {
    height: 44px;
  }
  .vtt-actions {
    gap: 14px;
  }
  .vtt-submit {
    height: 48px;
  }
  .vtt-foot {
    margin-top: 14px;
  }
}

@media (max-height: 680px) {
  .vtt-card {
    padding: 18px 30px 16px;
  }
  .vtt-logo-row {
    margin-bottom: 8px;
  }
  .vtt-logo-box img {
    width: 108px;
  }
  .vtt-title {
    font-size: 19px;
  }
  .vtt-subtitle {
    margin: 4px 0 12px;
    font-size: 13px;
  }
  .vtt-field {
    margin-bottom: 8px;
  }
  .vtt-input,
  input.form__input {
    height: 40px;
  }
  .vtt-actions {
    gap: 10px;
  }
  .vtt-submit {
    height: 44px;
  }
  .vtt-foot {
    margin-top: 10px;
  }
}
