/* ===========================================================
   VTT identity — glassmorphism login
   =========================================================== */

* {
  box-sizing: border-box;
}

:root {
  --page: radial-gradient(circle at 50% 0%, #f3f9f8, #e9f1f0 92%);
  --card-bg: rgba(250, 252, 251, 0.9);
  --card-border: rgba(19, 176, 163, 0.2);
  --card-shadow:
    0 40px 90px -28px rgba(8, 70, 64, 0.35),
    0 14px 30px -14px rgba(8, 70, 64, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --dot: rgba(12, 128, 119, 0.1);
  --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;
  --check-border: rgba(12, 128, 119, 0.4);
  --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);
}

body.vtt-dark {
  --page: radial-gradient(circle at 50% 0%, #23262c, #181b20 92%);
  --card-bg: rgba(34, 37, 43, 0.82);
  --card-border: rgba(95, 201, 192, 0.2);
  --card-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.7), 0 14px 30px -14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --dot: rgba(150, 230, 222, 0.08);
  --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);
  --check-border: rgba(150, 230, 222, 0.42);
  --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);
}

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(var(--rot, 0deg)) scale(1);
    opacity: 0.55;
  }
  25% {
    transform: translate(18px, -34px) rotate(calc(var(--rot, 0deg) + 60deg))
      scale(1.15);
    opacity: 1;
  }
  50% {
    transform: translate(-14px, -58px) rotate(calc(var(--rot, 0deg) + 140deg))
      scale(0.9);
    opacity: 0.7;
  }
  75% {
    transform: translate(-22px, -26px) rotate(calc(var(--rot, 0deg) + 220deg))
      scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(calc(var(--rot, 0deg) + 360deg)) scale(1);
    opacity: 0.55;
  }
}
@keyframes vtt-floatB {
  0% {
    transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-20px, 30px) rotate(calc(var(--rot, 0deg) - 70deg))
      scale(0.88);
    opacity: 1;
  }
  50% {
    transform: translate(16px, 54px) rotate(calc(var(--rot, 0deg) - 150deg))
      scale(1.18);
    opacity: 0.7;
  }
  75% {
    transform: translate(24px, 22px) rotate(calc(var(--rot, 0deg) - 250deg))
      scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(calc(var(--rot, 0deg) - 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%);
  }
}

/* ---------- 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;
  background-image: radial-gradient(
    circle,
    var(--dot) 1.4px,
    transparent 1.6px
  );
  background-size: 22px 22px;
}

.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;
}
/* ----- faixa do topo (12) ----- */
.vtt-tri.t1 {
  top: 5%;
  left: 3%;
  --rot: 18deg;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid rgba(19, 176, 163, 0.42);
  animation: vtt-floatA 11s ease-in-out infinite;
}
.vtt-tri.t2 {
  top: 14%;
  left: 10%;
  --rot: -32deg;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(95, 201, 192, 0.5);
  animation: vtt-floatB 9s ease-in-out infinite 0.6s;
}
.vtt-tri.t3 {
  top: 3%;
  left: 18%;
  --rot: 124deg;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 31px solid rgba(19, 176, 163, 0.36);
  animation: vtt-floatB 13s ease-in-out infinite 1.5s;
}
.vtt-tri.t4 {
  top: 20%;
  left: 25%;
  --rot: -68deg;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid rgba(95, 201, 192, 0.52);
  animation: vtt-floatA 10s ease-in-out infinite 0.3s;
}
.vtt-tri.t5 {
  top: 8%;
  left: 33%;
  --rot: 205deg;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid rgba(95, 201, 192, 0.4);
  animation: vtt-floatB 12.5s ease-in-out infinite;
}
.vtt-tri.t6 {
  top: 17%;
  left: 41%;
  --rot: 47deg;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid rgba(19, 176, 163, 0.32);
  animation: vtt-floatA 14s ease-in-out infinite 1.2s;
}
.vtt-tri.t7 {
  top: 2%;
  left: 49%;
  --rot: -15deg;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(95, 201, 192, 0.5);
  animation: vtt-floatB 8.5s ease-in-out infinite 0.9s;
}
.vtt-tri.t8 {
  top: 19%;
  left: 57%;
  --rot: 88deg;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid rgba(19, 176, 163, 0.4);
  animation: vtt-floatA 10.5s ease-in-out infinite;
}
.vtt-tri.t9 {
  top: 6%;
  left: 65%;
  --rot: -120deg;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(95, 201, 192, 0.36);
  animation: vtt-floatB 11.5s ease-in-out infinite 0.4s;
}
.vtt-tri.t10 {
  top: 15%;
  left: 73%;
  --rot: 160deg;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid rgba(95, 201, 192, 0.52);
  animation: vtt-floatA 9.5s ease-in-out infinite 1.8s;
}
.vtt-tri.t11 {
  top: 4%;
  left: 82%;
  --rot: 30deg;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 30px solid rgba(19, 176, 163, 0.38);
  animation: vtt-floatB 13.5s ease-in-out infinite;
}
.vtt-tri.t12 {
  top: 18%;
  left: 90%;
  --rot: -55deg;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 44px solid rgba(19, 176, 163, 0.3);
  animation: vtt-floatA 15s ease-in-out infinite 0.7s;
}
/* ----- faixa de baixo (12) ----- */
.vtt-tri.t13 {
  top: 80%;
  left: 4%;
  --rot: -25deg;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(19, 176, 163, 0.38);
  animation: vtt-floatA 12s ease-in-out infinite 0.8s;
}
.vtt-tri.t14 {
  top: 92%;
  left: 11%;
  --rot: 70deg;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(95, 201, 192, 0.5);
  animation: vtt-floatB 9.5s ease-in-out infinite;
}
.vtt-tri.t15 {
  top: 83%;
  left: 19%;
  --rot: 140deg;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid rgba(95, 201, 192, 0.34);
  animation: vtt-floatB 15s ease-in-out infinite 1.1s;
}
.vtt-tri.t16 {
  top: 95%;
  left: 27%;
  --rot: -90deg;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid rgba(19, 176, 163, 0.46);
  animation: vtt-floatA 8.5s ease-in-out infinite 0.5s;
}
.vtt-tri.t17 {
  top: 78%;
  left: 35%;
  --rot: 200deg;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid rgba(95, 201, 192, 0.4);
  animation: vtt-floatB 11s ease-in-out infinite;
}
.vtt-tri.t18 {
  top: 90%;
  left: 43%;
  --rot: 35deg;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-bottom: 37px solid rgba(19, 176, 163, 0.32);
  animation: vtt-floatA 13.5s ease-in-out infinite 2s;
}
.vtt-tri.t19 {
  top: 82%;
  left: 51%;
  --rot: -48deg;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(95, 201, 192, 0.5);
  animation: vtt-floatB 9s ease-in-out infinite 0.7s;
}
.vtt-tri.t20 {
  top: 94%;
  left: 59%;
  --rot: 110deg;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid rgba(19, 176, 163, 0.4);
  animation: vtt-floatA 10.5s ease-in-out infinite;
}
.vtt-tri.t21 {
  top: 79%;
  left: 67%;
  --rot: -135deg;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 33px solid rgba(95, 201, 192, 0.36);
  animation: vtt-floatB 12.5s ease-in-out infinite 1.4s;
}
.vtt-tri.t22 {
  top: 91%;
  left: 76%;
  --rot: 22deg;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid rgba(95, 201, 192, 0.52);
  animation: vtt-floatA 9.5s ease-in-out infinite;
}
.vtt-tri.t23 {
  top: 84%;
  left: 85%;
  --rot: 165deg;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-bottom: 40px solid rgba(19, 176, 163, 0.32);
  animation: vtt-floatB 14.5s ease-in-out infinite 0.3s;
}
.vtt-tri.t24 {
  top: 96%;
  left: 93%;
  --rot: -60deg;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid rgba(95, 201, 192, 0.44);
  animation: vtt-floatA 11.5s ease-in-out infinite 1s;
}

/* ---------- 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: 26px;
  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: 7px 0 30px;
  text-align: center;
  font-size: 14.5px;
  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-field-box.pwd .vtt-input {
  padding-right: 44px;
}

.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);
}

/* password reveal (keeps existing #passwordToggle behavior + phosphor icon) */
.password-toggle,
#passwordToggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--icon);
  cursor: pointer;
  border-radius: 10px;
  transition:
    background 0.2s,
    color 0.5s ease;
}
.password-toggle:hover {
  background: rgba(17, 168, 156, 0.12);
}
.password-toggle i {
  font-size: 1.25rem;
}

/* ---------- row: remember + forgot ---------- */
.vtt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.44s;
}
.vtt-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.5s ease;
}
.vtt-remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vtt-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--check-border);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: all 0.2s;
}
.vtt-check svg {
  opacity: 0;
  transition: opacity 0.15s;
}
.vtt-remember input:checked + .vtt-check {
  background: linear-gradient(120deg, #0c8077, #13b0a3);
  border-color: transparent;
}
.vtt-remember input:checked + .vtt-check svg {
  opacity: 1;
}

.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);
}

/* ---------- submit ---------- */
.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;
  animation: vtt-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.5s;
}
.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;
}

/* ---------- footer / error ---------- */
.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;
}

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

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

/* 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: 22px;
  }
  .vtt-subtitle {
    margin: 5px 0 18px;
    font-size: 13.5px;
  }
  .vtt-field {
    margin-bottom: 12px;
  }
  .vtt-field-label {
    margin-bottom: 5px;
  }
  .vtt-input,
  input.form__input {
    height: 44px;
  }
  .vtt-row {
    margin-bottom: 16px;
  }
  .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: 3px 0 12px;
    font-size: 12.5px;
  }
  .vtt-field {
    margin-bottom: 8px;
  }
  .vtt-field-label {
    margin-bottom: 4px;
  }
  .vtt-input,
  input.form__input {
    height: 40px;
  }
  .vtt-row {
    margin-bottom: 10px;
  }
  .vtt-submit {
    height: 44px;
  }
  .vtt-foot {
    margin-top: 10px;
  }
}
