/* Variáveis CSS */
:root {
  --primary-gradient: linear-gradient(135deg, #6cc79d 0%, #198754 100%);
  --success-gradient: linear-gradient(135deg, #28a745, #20c997);
  --danger-color: #dc3545;
  --success-color: #28a745;
  --primary-color: #198754;
  --text-dark: #2c3e50;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Melhorias no layout de autenticação */
#layoutAuthentication {
  background: var(--primary-gradient);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#layoutAuthentication::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpolygon points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
  /*animation: float 20s linear infinite;*/
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

#layoutAuthentication_content {
  position: relative;
  z-index: 1;
  align-content: center;
  min-height: 100vh;
}

/* Card moderno */
.modern-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-strong);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* Header do login */
.login-header {
  padding: 1rem 0 2rem 0;
  position: relative;
}

.logo-container {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.logo-container:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo-icon {
  color: white;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Body do card */
.modern-card-body {
  padding: 2rem;
}

/* Alerts modernos */
.modern-alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border-left: 4px solid;
  font-weight: 500;
}

.modern-alert.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border-left-color: var(--danger-color);
}

.modern-alert.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border-left-color: var(--success-color);
}

/* Grupos de formulário */
.modern-form-group {
  margin-bottom: 1.5rem;
}

.modern-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Input group melhorado */
.input-group {
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
}

.modern-input-icon {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modern-input {
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.modern-input:focus {
  box-shadow: none;
  background: white;
  transform: none;
}

.modern-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* Footer do card */
.modern-card-footer {
  background: rgba(248, 249, 250, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.modern-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.modern-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.modern-link:hover {
  color: #115837;
  transform: translateY(-1px);
}

.modern-link:hover::after {
  width: 100%;
}

/* Divisor */
.link-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #6c757d;
  font-size: 0.85rem;
}

.link-divider::before,
.link-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.link-divider span {
  padding: 0 1rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 20px;
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 400px) {
  #layoutAuthentication_content {
    padding: 1rem;
  }
  
  .modern-card-body {
    padding: 1.25rem;
  }
  
  .modern-input {
    padding: 0.875rem 1rem;
  }
  .d-flex.justify-content-between {
    gap: 0.75rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}
@media (max-width: 576px) {
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .modern-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .modern-btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .d-flex.justify-content-between {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}

@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .modern-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .modern-btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .d-flex.justify-content-between {
    gap: 1rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}
@media (min-width: 992px) {
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .modern-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .modern-btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .d-flex.justify-content-between {
    gap: 1rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}
@media (min-width: 1200px) {
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .modern-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .modern-btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .d-flex.justify-content-between {
    gap: 1rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}
@media (min-width: 1400px) {
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .modern-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .modern-btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .d-flex.justify-content-between {
    gap: 0.75rem;
  }
  .d-flex.justify-content-between .btn {
    width: 100%;
    min-width: auto;
  }
}

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

/*.modern-login-card {
  animation: slideInUp 0.6s ease-out;
}*/

/* Melhoria na classe original btn-lg-entrar se ela existir */
.btn-lg-entrar {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.no_sidebar_content {
  margin-top: 56px;
  position: relative;
  display: flex;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
