@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;      /* Indigo */
  --primary-hover: #4338ca;
  --accent-color: #0ea5e9;       /* Sky Blue */
  --bg-app: #f1f5f9;             /* Slate 100 */
  --text-main: #0f172a;          /* Slate 900 */
  --text-muted: #64748b;         /* Slate 500 */
  --card-bg: #ffffff;
  --card-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --input-border: #cbd5e1;
  --input-focus: #a5b4fc;
  --success-color: #10b981;      /* Emerald */
  --error-color: #ef4444;        /* Rose */
  --font-family: 'Outfit', sans-serif;
  --border-radius: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Ilustrativo com Efeitos de Gradiente Flutuantes */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  /* Degradê limpo e moderno com as cores do sistema */
  background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 50%, #e0f2fe 100%);
}

/* Estilos para as formas flutuantes do logo Flua no fundo */
.auth-bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.auth-shape-left {
  top: -10%;
  left: -10%;
  width: 45%;
  height: 60%;
  opacity: 0.25; /* Mais visível no fundo claro */
  transform: rotate(15deg);
}

.auth-shape-right {
  bottom: -10%;
  right: -10%;
  width: 45%;
  height: 60%;
  opacity: 0.25; /* Mais visível no fundo claro */
  transform: rotate(-15deg);
}

.auth-shape-small-1 {
  top: 15%;
  right: 12%;
  width: 80px;
  height: 80px;
  opacity: 0.35;
}

.auth-shape-small-2 {
  bottom: 20%;
  left: 12%;
  width: 80px;
  height: 80px;
  opacity: 0.35;
}

.auth-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.06), 0 8px 10px -6px rgba(79, 70, 229, 0.06);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -5px rgba(79, 70, 229, 0.12), 0 10px 15px -6px rgba(79, 70, 229, 0.12);
}

.auth-title {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Estilos de Formulários */
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 10px;
  border: 1px solid var(--input-border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  background-color: #ffffff;
}

/* Botões */
.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

/* Rodapé e links */
.auth-footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer-link a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Painel / Dashboard */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-wrapper {
  flex: 1;
  padding: 3rem 1rem;
}

.dashboard-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  padding: 2rem;
}

/* Alertas Personalizados */
.alert-custom {
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.alert-custom-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: var(--error-color);
}

.alert-custom-success {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--success-color);
}

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

.animated-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Submenus para a Navbar */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: 2px;
  display: none;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

/* Botão Voltar Customizado na Navbar */
.btn-navbar-back {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: var(--primary-color);
  background-color: transparent;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-navbar-back:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* Correções de Contraste Globais para Botões Outline em Hover */
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-dark:hover {
  color: #ffffff !important;
}

.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover {
  color: #0f172a !important; /* Texto escuro para contraste com fundos claros */
}

/* Efeito Hover para Links de Texto (estilo Breadcrumb) */
.hover-primary:hover {
  color: var(--primary-color) !important;
}
