/* ====================================
   STYLE_LOGIN.CSS - Sistema de Login JQ
   Design Premium com Transparência
   ==================================== */

:root {
  --primary-color: #FF9800;
  --secondary-color: #395762;
  --accent-color: #FF9800;
  --success-color: #FF9800;
  --warning-color: #fff3e0;
  --danger-color: #d32f2f;
  --dark-color: #395762;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --white-color: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2a4349 100%);
}

/* ====================================
   BACKGROUND VIDEO
   ==================================== */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
      rgba(57, 87, 98, 0.75) 0%, 
      rgba(42, 67, 73, 0.80) 50%,
      rgba(57, 87, 98, 0.75) 100%);
  backdrop-filter: blur(1px);
}

/* ====================================
   ÍCONES DE CONDUÇÃO FLUTUANTES
   ==================================== */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  color: var(--primary-color);
  opacity: 0;
  animation: float-driving 20s infinite ease-in-out;
  font-size: 40px;
  filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.3));
}

/* Carros */
.particle:nth-child(1) {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.particle:nth-child(2) {
  top: 70%;
  left: 90%;
  animation-delay: 3s;
  animation-duration: 22s;
  font-size: 35px;
}

/* Cones */
.particle:nth-child(3) {
  top: 40%;
  left: 85%;
  animation-delay: 1.5s;
  animation-duration: 18s;
  font-size: 30px;
}

.particle:nth-child(4) {
  top: 80%;
  left: 10%;
  animation-delay: 5s;
  animation-duration: 20s;
  font-size: 32px;
}

/* Sinais de trânsito */
.particle:nth-child(5) {
  top: 25%;
  left: 75%;
  animation-delay: 2s;
  animation-duration: 24s;
  font-size: 38px;
}

.particle:nth-child(6) {
  top: 60%;
  left: 15%;
  animation-delay: 4s;
  animation-duration: 19s;
  font-size: 36px;
}

/* Volantes */
.particle:nth-child(7) {
  top: 50%;
  left: 50%;
  animation-delay: 6s;
  animation-duration: 26s;
  font-size: 34px;
}

.particle:nth-child(8) {
  top: 10%;
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 21s;
  font-size: 33px;
}

@keyframes float-driving {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.25;
    transform: translate(30px, -80px) rotate(20deg);
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translate(-50px, -150px) rotate(45deg);
    opacity: 0;
  }
}

/* ====================================
   MAIN CONTAINER
   ==================================== */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: slideIn 0.8s ease-out;
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   BRANDING SIDE - Transparente
   ==================================== */
.branding-side {
  background: linear-gradient(135deg, 
    rgba(255, 152, 0, 0.95) 0%, 
    rgba(255, 140, 0, 0.92) 100%);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(1px);
}

.branding-side::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.branding-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 8px rgba(255, 255, 255, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 50%;
  z-index: -1;
}

.logo i {
  font-size: 60px;
  color: var(--primary-color);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.branding-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
}

.branding-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.branding-content p {
  font-size: 1.1rem;
  opacity: 0.98;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 20px;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-item i {
  font-size: 24px;
  color: var(--white-color);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.feature-item span {
  font-size: 0.95rem;
  color: var(--white-color);
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ====================================
   FORM SIDE - Transparente Suave
   ==================================== */
/*.form-side {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(30px);
  background: none;
}*/

/*.form-side {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Vidro translúcido /
  background: rgba(192, 186, 186, 0.01);

  /* Efeito de desfoque do fundo /
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);

  /* Borda tipo vidro /
  border: 1px solid rgba(255, 255, 255, 0.5);

  / Sombra suave /
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  Glassmorphism
}*/

.form-side {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Transparência sem blur */
  /*background: rgba(255, 255, 255, 0.027);

  backdrop-filter: blur(1px);*/

  /* Borda tipo vidro 
  border: 1px solid rgba(255, 255, 255, 0.2);*/
}



.form-header {
  margin-bottom: 40px;
  animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header h2 {
  font-size: 2rem;
  color: var(--white-color);
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(255, 152, 0, 0.8);
}

.form-header p {
  color: var(--white-color);
  font-size: 0.95rem;
}

/* ===== TÍTULO DIGITANDO ===== */
.typing {
  font-size: 2rem;
  color: var(--white-color);
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(255, 152, 0, 0.8);
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid white;

  width: 0;
  animation: typing 7s steps(22, end) infinite, blink 0.8s infinite;
}

/* Digita e apaga */
@keyframes typing {
  0%   { width: 0ch }
  40%  { width: 22ch }
  60%  { width: 22ch }
  100% { width: 0ch }
}


/* Cursor piscando */
@keyframes blink {
  50% { border-color: transparent }
}


/* ===== SUBTÍTULO SUAVE ===== */
.subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;

  opacity: 0;
  transform: translateY(10px);

  animation: fadeSubtitle 7s infinite;
}

/* Sincronizado com o typing */
@keyframes fadeSubtitle {
  0%   { opacity: 0; transform: translateY(10px); }
  30%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
  animation: fadeIn 1s ease-out 0.5s both;
}

.form-group:nth-child(2) {
  animation-delay: 0.6s;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--white-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

.input-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
  font-size: 18px;
  transition: all 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 16px 55px 16px 55px;
  border: 2px solid rgba(224, 224, 224, 0.5);
  border-radius: 15px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background: transparent;
  backdrop-filter: blur(10px);
  color: var(--white-color);
}

.form-control::placeholder {
  color: rgba(229, 235, 240, 0.7);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
  transform: translateY(-2px);
}

.form-control:focus::placeholder {
  color: rgba(255, 152, 0, 0.2);
}

.input-wrapper:has(.form-control:focus) i:first-of-type {
  color: var(--primary-color);
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--medium-gray);
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 18px;
  padding: 5px;
}

.password-toggle:hover {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.2);
}

/* ====================================
   FORM OPTIONS
   ==================================== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -10px 0 10px 0;
  animation: fadeIn 1s ease-out 0.7s both;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.remember-me label {
  font-size: 0.9rem;
  color: var(--white-color);
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

/* ====================================
   BUTTON LOGIN
   ==================================== */
.btn-login {
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
  color: var(--white-color);
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(255, 152, 0, 0.4),
    0 0 0 0 rgba(255, 152, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out 0.8s both;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-login::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.3), 
      transparent);
  transition: left 0.7s;
}

.btn-login:hover::before {
  width: 300px;
  height: 300px;
}

.btn-login:hover::after {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(255, 152, 0, 0.5),
    0 0 0 8px rgba(255, 152, 0, 0.15);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login span {
  position: relative;
  z-index: 1;
}

/* Loading State */
.btn-login.loading {
  pointer-events: none;
}

.btn-login.loading span {
  opacity: 0;
}

.btn-login.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====================================
   ALERT MESSAGES
   ==================================== */
.alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  animation: slideDown 0.5s ease-out;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.show {
  display: flex;
}

.alert-success {
  background: rgba(212, 237, 218, 0.95);
  color: #155724;
  border: 1px solid rgba(195, 230, 203, 0.8);
}

.alert-error {
  background: rgba(248, 215, 218, 0.95);
  color: #721c24;
  border: 1px solid rgba(245, 198, 203, 0.8);
}

.alert-warning {
  background: rgba(255, 243, 205, 0.95);
  color: #856404;
  border: 1px solid rgba(255, 234, 167, 0.8);
}

.alert i {
  font-size: 18px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 968px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .branding-side {
    padding: 40px 30px;
  }

  .branding-content h1 {
    font-size: 2rem;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature-item {
    flex: 1 1 calc(50% - 10px);
  }

  .form-side {
    padding: 40px 30px;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 10px;
  }

  .login-card {
    border-radius: 20px;
  }

  .branding-side {
    padding: 30px 20px;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .logo i {
    font-size: 45px;
  }

  .branding-content h1 {
    font-size: 1.6rem;
  }

  .branding-content p {
    font-size: 0.95rem;
  }

  .features {
    gap: 10px;
  }

  .feature-item {
    flex: 1 1 100%;
    padding: 12px 15px;
  }

  .form-side {
    padding: 30px 20px;
  }

  .form-header h2 {
    font-size: 1.6rem;
  }

  .form-control {
    padding: 14px 18px 14px 50px;
    font-size: 0.95rem;
  }

  .btn-login {
    padding: 16px;
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .particle {
    font-size: 30px;
  }
}