/* ==========================================================
   ESTILOS DE FUNDO & ESTRUTURA GERAL
   ========================================================== */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  overflow-x: hidden !important;
}

body.bg-mobile-grey {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  background-color: #0284c7 !important;
}

/* 1. IMAGEM DE FUNDO (Cobre a tela inteira por baixo) */
body.bg-mobile-grey::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('../img/fotos/ilha-comprida-bv.png') !important; 
  background-size: cover !important;
  background-position: center !important;
  z-index: -2 !important;
}

/* ==========================================================
   CORTE DIAGONAL CORRETO (Igual à imagem de referência)
   ========================================================== */
body.bg-mobile-grey::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #74d5ff !important; /* Cor do azul claro da referência */

  clip-path: polygon(0 0, 0 100%, 48% 100%) !important;
  
  z-index: -1 !important;
  opacity: 1 !important;
}
/* ==========================================================
   BOTÃO VOLTAR AO INÍCIO
   ========================================================== */
.btn-voltar-container {
  padding: 20px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
}

.btn-voltar-premium {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  padding: 9px 18px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.25s ease !important;
}

.btn-voltar-premium:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  transform: translateX(-3px) !important;
}

/* ==========================================================
   CARD COM GLASSMORPHISM (DESKTOP)
   ========================================================== */
.mobile-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex: 1 !important;
  z-index: 1 !important;
}

.mobile-form-card {
  width: 100% !important;
  max-width: 440px !important; /* Proporção ideal para Desktop */
  margin: 0 auto !important;

  /* Efeito Vidro Transparente */
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

/* Cabeçalho */
.form-header-blue {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(3, 105, 161, 0.85) 100%) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  padding: 20px 24px !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

/* Corpo e Inputs */
.form-body {
  padding: 28px 24px !important;
}

.form-group-mobile {
  margin-bottom: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.form-group-mobile label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.mobile-input {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.mobile-input:focus {
  border-color: #0284c7 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2) !important;
}

/* Configuração do Ícone no Final do Campo de Senha */
.password-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.password-wrapper .mobile-input {
  padding-right: 44px !important;
}

.btn-toggle-password {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  z-index: 5 !important;
}

.btn-toggle-password:hover {
  color: #0284c7 !important;
}

/* Botão Entrar / Cadastrar */
.btn-mobile-primary {
  width: 100% !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.2s ease !important;
}

.btn-mobile-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

/* ==========================================================
   RESPONSIVIDADE (MOBILE / DISPOSITIVOS MÓVEIS)
   ========================================================== */
@media (max-width: 640px) {
  /* No celular o corte fica na horizontal/diagonal suave no topo */
  body.bg-mobile-grey::after {
    clip-path: polygon(0 0, 100% 0, 100% 18%, 0 45%) !important;
  }

  .btn-voltar-container {
    padding: 16px !important;
  }

  .mobile-container {
    padding: 12px !important;
    align-items: flex-start !important; /* Facilita a rolagem no celular */
  }

  .mobile-form-card {
    max-width: 100% !important;
    margin-top: 10px !important;
    border-radius: 16px !important;
    /* Un pouco mais opaco no celular para garantir leitura sob luz solar */
    background: rgba(255, 255, 255, 0.85) !important; 
  }

  .form-body {
    padding: 22px 18px !important;
  }
}

@media (max-width: 768px) {
  body.bg-mobile-grey::after {
    /* No celular o corte fica suave no topo da tela */
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 35%) !important;
  }
}

/* Ajuste para textos informativos dentro do card de vidro */
.form-body p {
  font-size: 0.88rem !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================
   FUNDO COM DOIS TRIÂNGULOS (EXCLUSIVO PARA ESQUECI A SENHA)
   ========================================================== */

/* 1. TRIÂNGULO INFERIOR ESQUERDO */
body.bg-esqueci-senha::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #7dd3fc !important; /* Cor azul claro da referência */
  
  /* Triângulo partindo do topo-esquerdo até a base centro-esquerda */
  clip-path: polygon(0 0, 0 100%, 50% 100%) !important;
  
  z-index: -1 !important;
  opacity: 0.95 !important;
}

/* 2. TRIÂNGULO SUPERIOR DIREITO */
.bg-esqueci-senha::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #7dd3fc !important; /* Mesma cor azul */
  
  /* Triângulo no canto superior direito cortando em diagonal */
  clip-path: polygon(50% 0, 100% 0, 100% 100%) !important;
  
  z-index: -1 !important;
  opacity: 0.95 !important;
}

/* ==========================================================
   RESPONSIVIDADE MÓVEL PARA OS DOIS TRIÂNGULOS
   ========================================================== */
@media (max-width: 768px) {
  body.bg-esqueci-senha::after {
    clip-path: polygon(0 0, 0 100%, 70% 100%) !important;
  }
  
  .bg-esqueci-senha::before {
    clip-path: polygon(30% 0, 100% 0, 100% 100%) !important;
  }
}

/* ==========================================================
   ESTILOS EXCLUSIVOS DA TELA ESQUECI A SENHA (2 TRIÂNGULOS)
   ========================================================== */

/* Remove o fundo branco/cinza antigo do body */
body.bg-esqueci-senha {
  background-color: transparent !important;
}

/* 1. TRIÂNGULO ESQUERDO (Base até o centro, topo no canto superior esquerdo) */
body.bg-esqueci-senha::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #7dd3fc !important; /* Azul claro */
  clip-path: polygon(0 0, 0 100%, 50% 100%) !important;
  z-index: -1 !important;
  opacity: 0.95 !important;
}

/* 2. TRIÂNGULO DIREITO (Topo até o centro, base no canto inferior direito) */
body.bg-esqueci-senha::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #7dd3fc !important; /* Azul claro */
  clip-path: polygon(50% 0, 100% 0, 100% 100%) !important;
  z-index: -1 !important;
  opacity: 0.95 !important;
}

/* Força a largura e o visual Glassmorphism no card de recuperação */
.card-esqueci-senha {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
}

/* RESPONSIVIDADE MOBILE DO CORTE DUPLO */
@media (max-width: 768px) {
  body.bg-esqueci-senha::after {
    clip-path: polygon(0 0, 0 100%, 70% 100%) !important;
  }
  body.bg-esqueci-senha::before {
    clip-path: polygon(30% 0, 100% 0, 100% 100%) !important;
  }
  .card-esqueci-senha {
    max-width: 100% !important;
  }
}

