/* =====================================
   BORALÁ TCHE - LOGIN & CADASTRO STYLES
===================================== */

/* Reset e fonte */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Fundo e layout */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  position: relative;
  overflow-x: hidden;
}

/* Decorações de fundo */
.bg-decoration {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  pointer-events: none;
}

.bg-decoration-1 {
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: #FF4D8D;
  opacity: 0.18;
}

.bg-decoration-2 {
  bottom: -120px;
  left: -120px;
  width: 450px;
  height: 450px;
  background: #00A8FF;
  opacity: 0.15;
}

/* Container do formulário */
.auth-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s ease forwards;
}

/* Logo */
.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 12px rgba(0, 168, 255, 0.2));
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Títulos */
h1, h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.2;
}

h1 span {
  background: linear-gradient(135deg, #00A8FF, #FF4D8D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 32px;
}

/* Inputs */
input {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  font-size: 15px;
  transition: all 0.25s ease;
  outline: none;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: #00A8FF;
  box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.12);
  background: #ffffff;
}

input:hover:not(:focus) {
  border-color: #d1d5db;
}

/* Botões */
button {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

button:first-of-type {
  background: linear-gradient(135deg, #00A8FF, #0088cc);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.35);
}

button:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 168, 255, 0.45);
}

button:first-of-type:active {
  transform: translateY(0);
}

button:last-of-type {
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

button:last-of-type:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Mensagem de erro */
#mensagem-erro {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 14px;
  color: #dc2626;
  font-weight: 500;
  text-align: center;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: none;
}

#mensagem-erro:not(:empty) {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Texto auxiliar */
p {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

p a {
  color: #00A8FF;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

p a:hover {
  color: #0088cc;
  text-decoration: underline;
}

/* Link de recuperação de senha */
.forgot-password {
  display: block;
  text-align: right;
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #00A8FF;
}

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

/* =====================================
   RESPONSIVIDADE
===================================== */
@media (max-width: 480px) {
  body {
    padding: 24px 16px;
  }
  
  .logo {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
  }
  
  h1, h2 {
    font-size: 1.75rem;
  }
  
  input {
    padding: 14px 16px;
    font-size: 16px; /* Evita zoom no iOS */
  }
  
  button {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 48px 32px;
  }
  
  .auth-container {
    max-width: 420px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }
  
  h1, h2 {
    font-size: 2.25rem;
  }
}

/* =====================================
   ACESSIBILIDADE
===================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =====================================
   DARK MODE (OPCIONAL)
===================================== */
@media (prefers-color-scheme: dark) {
  /* Descomente se quiser suporte a dark mode
  body {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  }
  
  h1, h2 {
    color: #f1f5f9;
  }
  
  input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
  }
  
  input::placeholder {
    color: #64748b;
  }
  
  .auth-container {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.5);
  }
  */
}
