/* Login Page Premium Design - FIXED */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* Animated Background */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.shape-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%); animation-delay: 0s; }
.shape-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 400px; height: 400px; background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%); animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Login Container - DESKTOP FIRST */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row; /* Força lado a lado */
  width: 1000px;
  max-width: 95%;
  height: 600px; /* Altura fixa para garantir alinhamento */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Left Side */
.login-left {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

/* Right Side */
.login-right {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
}

.login-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover;
  opacity: 0.1;
  mix-blend-mode: overlay;
}

/* Brand & Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.login-welcome { margin-bottom: 32px; }
.login-welcome h2 { font-size: 1.8rem; font-weight: 700; color: #0f172a; margin: 0 0 8px 0; }
.login-welcome p { color: #64748b; font-size: 0.95rem; margin: 0; }

/* Form Styles - ROBUST */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 48px;
  display: block; /* Garante comportamento padrão */
}

.input-wrapper i,
.input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  z-index: 10;
  pointer-events: none;
  display: block; /* Garante que o ícone tenha dimensão */
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: white;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus + svg { 
  color: #8b5cf6; 
}

/* Button */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2); }

/* Footer */
.login-footer { margin-top: auto; text-align: center; }
.login-footer p { font-size: 0.75rem; color: #94a3b8; }

/* Showcase Right */
.glass-showcase {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  max-width: 320px;
}

.glass-showcase h3 { font-size: 1.8rem; margin: 0 0 16px 0; font-weight: 700; }
.glass-showcase p { font-size: 1rem; line-height: 1.6; opacity: 0.9; margin: 0; }

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .login-right { display: none; } /* Esconde lado direito no mobile */
  .login-left { padding: 32px; min-height: 100vh; }
}

/* Modal Styles (Mantidos simplificados) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-card { background: white; padding: 32px; border-radius: 20px; width: 90%; max-width: 400px; }
.modal-header-center { text-align: center; margin-bottom: 24px; }
.icon-circle { width: 56px; height: 56px; background: #f0fdf4; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #16a34a; }
.btn-primary-lg { width: 100%; padding: 14px; background: #16a34a; color: white; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 20px; }
.error-message { display: flex; align-items: center; gap: 8px; padding: 12px; background: #fef2f2; border: 1px solid #fee2e2; border-radius: 8px; color: #ef4444; font-size: 0.85rem; margin-top: 10px; }
