/* ==============================
   IMPORTAÇÕES E RESET -- 90% youtube
============================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;600&display=swap');

:root {
--cor-prima: #FFFF00;
--cor-sec: #FFD700;
--cor-gold: #DAA520;
--cor-terc: #B8860B;
--cor-oran:rgb(241, 174, 7);
--cor-quint:rgb(208, 122, 1);
--cor-preto: #000000;
--cor-textos: #FFFFFF;
--cor-botao: #ffffff;
--cor-nsei-ainda: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  color: white;
  height: 100vh;
  position: relative;
}

/* ==============================
   VÍDEO DE FUNDO
============================== */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.container h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.container h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.back-link {
  position: relative;
  margin-top: 14px;
  padding: 12px 30px;
  font-size: 16px;
  color: #ffd700;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: background 0.3s, color 0.3s;
}

.back-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  background-size: 200% 100%;
  animation: border-move 2s linear infinite;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}

.back-link:hover {
  background: #ffd700;
  color: black;
}

@keyframes border-move {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  border-radius: 50%;
  animation: moveUp linear infinite;
}

@keyframes moveUp {
  from {
    transform: translateY(100vh) scale(0.5);
    opacity: 1;
  }
  to {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* ========= PAINEL DE LOGUIN ===========*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body, html {
  height: 100%;
  overflow: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

/* Título */
.login-title {
  margin-bottom: 20px;
  font-size: 28px;
}

/* Campos de entrada */
.login-container input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #222;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
}

.password-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  background: white;
  max-width: 100%;
  width: 320px; 
  margin: 0 auto; 
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.password-wrapper input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 1rem;
  outline: none;
  transition: background-color 0.3s ease;
}

.password-wrapper input:focus {
  background-color: #f0f8ff;
}

.password-toggle {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #f4d803;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle .eye-open {
  display: block;
}

.password-toggle.show-password .eye-closed {
  display: block;
}

.password-toggle.show-password .eye-open {
  display: none;
}

.password-toggle svg {
  transition: transform 0.2s ease;
}

.password-toggle:active svg {
  transform: scale(0.9);
}

@media (max-width: 600px){
  .password-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: white;
    max-width: 100%;
  }

  .password-wrapper input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
  }

  .password-toggle {
    background: none;
    border: none;
    padding: 0 5px;
    cursor: pointer;
    font-size: 18px;
  }

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

/* Botões */
.api-button {
  position: relative;
  padding: 12px 30px;
  font-size: 16px;
  color: #FFD700;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  margin-top: 10px;
}

.api-button span {
  position: relative;
  z-index: 2;
}

.api-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #FFD700;
  border-radius: 6px;
  animation: neon-move 2s linear infinite;
  z-index: 1;
}

.api-button:hover::before {
  background: #FFD70022;
}

.api-button:hover span {
  color: #000;
}

@keyframes neon-move {
  0% {
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700 inset;
  }
  50% {
    box-shadow: 0 0 30px #FFD700, 0 0 60px #FFD700 inset;
  }
  100% {
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700 inset;
  }
}

.account-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.container {
  background: #000;
  border-radius: 10px;
  box-shadow: #eee;
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
}

form {
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

input {
  background: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 5px;
}

button {
  border: none;
  padding: 12px 45px;
  background-color: #4b0082;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  transition: transform 80ms ease-in;
  cursor: pointer;
  margin-top: 10px;
}

button:active {
  transform: scale(0.95);
}

button.ghost {
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 5px;
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: linear-gradient(to right, #f1c40f, #f39c12);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform 0.6s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
  left: 0;
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

.neon-button {
  position: relative;
  display: inline-block;
  border-radius: 5px;
  padding: 15px 30px;
  margin: 20px 0;
  color: #f4d803;
  background: transparent;
  border: none;
  transition: 0.5s;
  letter-spacing: 2px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.neon-button:hover {
  background: #f4d803;
  color: #050801;
  box-shadow: 0 0 5px #f4d803, 0 0 25px #f4d803, 0 0 50px #f4d803,
    0 0 200px #f4d803;
}

.neon-button span {
  position: absolute;
  display: block;
}

.neon-button span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f4d803);
  animation: animate1 1s linear infinite;
}

.neon-button span:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #f4d803);
  animation: animate2 1s linear infinite;
  animation-delay: 0.25s;
}

.neon-button span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #f4d803);
  animation: animate3 1s linear infinite;
  animation-delay: 0.5s;
}

.neon-button span:nth-child(4) {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #f4d803);
  animation: animate4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes animate1 {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes animate2 {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

@keyframes animate3 {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

@keyframes animate4 {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}