/* Container de login com gradiente animado */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e27 0%, #1e293b 40%, #6366f1 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
  animation: loginPattern 20s linear infinite;
}

@keyframes loginPattern {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(60px);
  }
}

/* Card de login com glassmorphism */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 480px;
  padding: 3.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Logo com gradiente */
.login-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.75rem;
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #0a0e27 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.login-header .logo svg {
  color: #6366f1;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.03em;
}

.login-header p {
  font-size: 1.0625rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Mensagem de erro com design moderno */
.error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #fca5a5;
  color: #dc2626;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Adicionando estilos profissionais para os inputs com ícones */
.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 1.125rem 1.25rem 1.125rem 3.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: inherit;
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.form-input:focus {
  background: white;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 24px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #6366f1;
  transform: scale(1.1);
}

/* Melhorando botão de login com efeitos premium */
.btn-full {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-full::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-full:hover::before {
  width: 400px;
  height: 400px;
}

.btn-full:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.45);
}

.btn-full:active {
  transform: translateY(-2px) scale(1);
}

.login-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.back-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.back-link:hover {
  color: #6366f1;
  transform: translateX(-4px);
}

@media (max-width: 640px) {
  .login-card {
    padding: 2.5rem;
  }

  .login-header h1 {
    font-size: 1.75rem;
  }
}
