/* ============================================
   Sprint Max - Login & Cadastro
   Paleta: Preto, Cinza Escuro, Branco, Laranja, Vermelho
   Tipografia: Inter (UI) + Poppins (Display)
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0f0f11;
  --gray-dark: #1a1a1d;
  --gray-mid: #2a2a2e;
  --gray-light: #3a3a3f;
  --gray-text: #9a9aa0;
  --white: #ffffff;
  --orange: #f97316;
  --orange-light: #fb923c;
  --red: #ef4444;
  --orange-glow: rgba(249, 115, 22, 0.15);
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background-color: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout Principal ---------- */
.login-conteiner {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Lado Esquerdo (Formulário) ---------- */
.login-esquerda {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: var(--gray-dark);
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

.login-formulario-conteiner {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.6s ease-out;
}

/* ---------- Logo ---------- */
.marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}


.marca span {
  font-family: "Poppins", sans-serif;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------- Títulos ---------- */
.login-titulo {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.375rem;
  color: var(--white);
}

.login-titulo .destaque {
  color: var(--orange);
}

.destaque{
color: var(--orange) !important;
}

.login-subtitulo {
  font-size: 0.875rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ---------- Campos de Input ---------- */
.grupo-formulario {
  margin-bottom: 1.25rem;
}

.grupo-formulario label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.entrada-conteiner {
  position: relative;
  display: flex;
  align-items: center;
}

.entrada-conteiner .icone-entrada {
  position: absolute;
  left: 1rem;
  color: var(--gray-light);
  font-size: 0.875rem;
  pointer-events: none;
  transition: color 0.3s;
}

.entrada-conteiner input {
  width: 100%;
  padding: 0.8125rem 1rem 0.8125rem 2.75rem;
  background-color: var(--gray-mid);
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: var(--white);
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.entrada-conteiner input::placeholder {
  color: var(--gray-light);
  font-weight: 400;
}

.entrada-conteiner input:hover {
  background-color: #2f2f34;
}

.entrada-conteiner input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background-color: var(--gray-mid);
}

.entrada-conteiner input:focus ~ .icone-entrada {
  color: var(--orange);
}

/* Botão mostrar/ocultar senha */
.alternar-senha {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-light);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem;
  transition: color 0.3s;
}

.alternar-senha:hover {
  color: var(--orange-light);
}

/* ---------- Botão Entrar / Cadastrar ---------- */
.botao-sprint {
  width: 100%;
  padding: 0.8125rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    opacity 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  margin-top: 0.5rem;
}

.botao-sprint:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.botao-sprint:active {
  transform: translateY(0);
}

/* ---------- Link "Esqueci minha senha" ---------- */
.esqueci-senha {
  text-align: right;
  margin: -6px 0 14px;
}

.esqueci-senha a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--orange, #f97316);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.esqueci-senha a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ---------- Divider ---------- */
.divisor {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divisor::before,
.divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--gray-mid);
}

.divisor span {
  font-size: 0.8125rem;
  color: var(--gray-light);
  white-space: nowrap;
}

/* ---------- Botão Criar Conta ---------- */
.botao-contorno-sprint {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--orange);
  border-radius: 10px;
  background: transparent;
  color: var(--orange);
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.botao-contorno-sprint:hover {
  background-color: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

/* ---------- Card Admin (credenciais de teste) ---------- */
.cartao-admin {
  margin-top: 1.75rem;
  padding: 0.875rem 1rem;
  background-color: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cartao-admin .icone-escudo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
}

.cartao-admin .informacoes-admin h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cartao-admin .informacoes-admin p {
  font-size: 0.75rem;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}

.cartao-admin .informacoes-admin span {
  color: var(--orange-light);
  font-weight: 500;
}

/* ---------- Lado Direito (Visual) ---------- */
.login-direita {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--orange), #e8590c, var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-direita picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.login-direita picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Elementos geométricos decorativos */
.login-direita::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  top: -80px;
  right: -120px;
  animation: pulse-slow 6s ease-in-out infinite;
}

.login-direita::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  bottom: -60px;
  left: -80px;
}

/* Círculos adicionais */
.circulo-geometrico {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.circulo-geometrico--1 {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 10%;
}

/* Linhas de velocidade */
.linha-velocidade {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  border-radius: 2px;
}

.linha-velocidade--1 {
  width: 120px;
  top: 25%;
  left: 5%;
  transform: rotate(-8deg);
}

.linha-velocidade--3 {
  width: 100px;
  top: 60%;
  left: 20%;
  transform: rotate(-3deg);
}

.corpo-modal {
  padding: 1rem 1.5rem 1.5rem;
}

.corpo-modal .login-subtitulo {
  margin-bottom: 1.5rem;
}

/* ---------- Animações ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.7;
  }
}

/* ---------- Responsividade ---------- */

/* Tablet */
@media (max-width: 991.98px) {
  .login-direita {
    display: none;
  }

  .login-esquerda {
    padding: 2rem 1.5rem;
  }

  .marca img {
    width: 50px;
    height: 50px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .login-esquerda {
    padding: 1.5rem 1.25rem;
  }

  .login-formulario-conteiner {
    max-width: 100%;
  }

  .login-titulo {
    font-size: 1.5rem;
  }

  .marca img {
    width: 42px;
    height: 42px;
  }

  .marca span {
    font-size: 1.25rem;
  }
}

/* ======================================================
   NOVOS ESTILOS — UI/UX v2
   Bolhas animadas, força de senha, estados de input,
   loading de botão e mensagens de erro inline.
   ====================================================== */

/* ---------- Bolhas animadas (fundo do painel esquerdo) ---------- */
.login-esquerda {
  overflow: hidden; /* confina as bolhas */
}

.bolha {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.07), transparent);
  border: 1px solid rgba(249, 115, 22, 0.08);
  pointer-events: none;
  animation: floatBubble var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bolha--1 {
  width: 90px;
  height: 90px;
  left: -15px;
  top: 18%;
  --dur: 13s;
  --delay: 0s;
}
.bolha--2 {
  width: 55px;
  height: 55px;
  right: 4%;
  top: 62%;
  --dur: 10s;
  --delay: 2s;
}
.bolha--3 {
  width: 130px;
  height: 130px;
  left: 28%;
  bottom: 3%;
  --dur: 16s;
  --delay: 4s;
}
.bolha--4 {
  width: 42px;
  height: 42px;
  right: 18%;
  top: 8%;
  --dur: 9s;
  --delay: 1s;
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-28px) scale(1.06);
    opacity: 0.9;
  }
  66% {
    transform: translateY(12px) scale(0.96);
    opacity: 0.6;
  }
}

/* ---------- Estados de erro / sucesso nos inputs ---------- */
.entrada-conteiner.error input {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

.entrada-conteiner.error .icone-entrada {
  color: var(--red);
}

.entrada-conteiner.success input {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.entrada-conteiner.success .icone-entrada {
  color: #10b981;
}

/* ---------- Mensagem de erro inline ---------- */
.field-error {
  font-size: 0.7rem;
  color: var(--red);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: fadeUp 0.2s ease both;
}

/* ---------- Indicador de força de senha ---------- */
.forca-conteiner {
  margin-top: 0.5rem;
}

.forca-senha {
  display: flex;
  gap: 4px;
}

.forca-barra {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background-color: var(--gray-light);
  transition: background-color 0.3s ease;
}

.forca-barra.weak {
  background-color: var(--red);
}
.forca-barra.medium {
  background-color: #f59e0b;
}
.forca-barra.strong {
  background-color: #10b981;
}

.forca-rotulo {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-text);
  margin-top: 0.25rem;
  min-height: 1rem;
  transition: color 0.3s;
}

.forca-rotulo.weak {
  color: var(--red);
}
.forca-rotulo.medium {
  color: #f59e0b;
}
.forca-rotulo.strong {
  color: #10b981;
}

/* ---------- Estado de loading no botão ---------- */
.botao-sprint:disabled,
.botao-sprint.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Link outline sem inline style ---------- */
.botao-contorno-sprint {
  text-decoration: none;
}
