  :root {
    --bg-main: #020d18;
    --bg-card: #041221;
    --accent-gold: #d4af37;
    --accent-gold-hover: #bfa032;
    --text-main: #ffffff;
    --text-muted: #8fa3b7;
    --border-color: rgba(212, 175, 55, 0.15);
    --input-bg: #061f37;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }

  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }

  .login-container {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 8px;
  }

  .brand span {
    color: var(--accent-gold);
  }

  .brand i {
    color: var(--accent-gold);
  }

  .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 35px;
  }

  .form-group {
    margin-bottom: 22px;
    text-align: left;
  }

  .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-wrapper i {
    position: absolute;
    left: 15px;
    color: rgba(212, 175, 55, 0.6);
    font-size: 1rem;
  }

  .form-control {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 15px 12px 45px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(6, 31, 55, 0.8);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  }

  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
  }

  .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
  }

  .remember-me input {
    accent-color: var(--accent-gold);
    cursor: pointer;
  }

  .forgot-password {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
  }

  .forgot-password:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
  }

  .btn-login {
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--bg-main);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .btn-login:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-1px);
  }

  .btn-login:active {
    transform: translateY(0);
  }

  .footer-text {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  header {
    border-bottom: 2px solid #d4af57;
    padding-bottom: 20px;
    margin-bottom: 35px;
  }

  .brand {
    font-size: 28px;
    font-weight: bold;
    color: #d4af57;
    letter-spacing: 1px;
  }

  .subtitle {
    font-size: 11px;
    color: #8fa3b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
  }

  h1 {
    font-size: 22px;
    margin-top: 15px;
    color: #ffffff;
  }

  h2 {
    font-size: 16px;
    color: #d4af57;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 87, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .card {
    background-color: #041221;
    border: 1px solid rgba(212, 175, 87, 0.1);
    border-radius: 6px;
    padding: 25px;
  }

  .full-width {
    grid-column: span 2;
  }

  .flex-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
  }

  /* --- BOTÕES --- */
  .btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
  }

  .btn-primary {
    background-color: #d4af57;
    color: #020d18;
    border: 1px solid #d4af57;
  }

  .btn-primary:hover {
    background-color: #e5c36e;
    border-color: #e5c36e;
  }

  .btn-dark {
    background-color: #061f37;
    color: #d4af57;
    border: 1px solid rgba(212, 175, 87, 0.3);
  }

  .btn-dark:hover {
    background-color: #0a2d4f;
  }

  .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
  }

  /* --- SISTEMA DE TOASTS (ALERTAS TEMPORÁRIOS) --- */
  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
  }

  .toast {
    background-color: #061f37;
    border-left: 4px solid #d4af57;
    border-top: 1px solid rgba(212, 175, 87, 0.1);
    border-right: 1px solid rgba(212, 175, 87, 0.1);
    border-bottom: 1px solid rgba(212, 175, 87, 0.1);
    color: #ffffff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: slideIn 0.3s ease forwards;
    position: relative;
  }

  .toast.toast-success {
    border-left-color: #27ae60;
  }

  .toast.toast-warning {
    border-left-color: #f39c12;
  }

  .toast.toast-danger {
    border-left-color: #c0392b;
  }

  .toast.toast-info {
    border-left-color: #2980b9;
  }

  .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
  }

  .toast-title-success {
    color: #27ae60;
  }

  .toast-title-warning {
    color: #f39c12;
  }

  .toast-title-danger {
    color: #c0392b;
  }

  .toast-title-info {
    color: #2980b9;
  }

  .toast-close {
    background: none;
    border: none;
    color: #8fa3b7;
    cursor: pointer;
    font-size: 16px;
  }

  .toast-close:hover {
    color: #ffffff;
  }

  .toast-body {
    font-size: 12.5px;
    color: #e1e1e1;
  }

  @keyframes slideIn {
    from {
      transform: translateX(120%);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* --- SISTEMA DE MODAL --- */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 13, 24, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal {
    background-color: #041221;
    border: 1px solid rgba(212, 175, 87, 0.3);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    overflow: hidden;
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-header {
    background-color: #061f37;
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 87, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #d4af57;
    letter-spacing: 0.5px;
  }

  .modal-close {
    background: none;
    border: none;
    color: #8fa3b7;
    cursor: pointer;
    font-size: 20px;
  }

  .modal-close:hover {
    color: #ffffff;
  }

  .modal-body {
    padding: 25px;
    font-size: 13.5px;
    color: #e1e1e1;
    line-height: 1.6;
  }

  .modal-footer {
    padding: 15px 25px;
    background-color: #061f37;
    border-top: 1px solid rgba(212, 175, 87, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  /* --- CENÁRIOS DE EXEMPLO (STATIC COMPARTMENT) --- */
  .static-alert {
    background-color: #061f37;
    border-left: 4px solid #d4af57;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .static-alert-title {
    font-weight: bold;
    color: #d4af57;
    margin-bottom: 3px;
    font-size: 13px;
  }

  .static-alert-desc {
    font-size: 12px;
    color: #8fa3b7;
  }

  /* ==========================================================================
   SISTEMA DE LOADER CENTRALIZADO (LÚMINA TEMA)
   ========================================================================== */

  /* Contêiner de fundo (Overlay) */
  .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 13, 24, 0.8);
    /* Fundo azul-escuro institucional com opacidade */
    backdrop-filter: blur(4px);
    /* Desfoque sutil no fundo do painel */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    /* Garante que fique acima de modais e da sidebar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Classe ativa para exibir o loader */
  .loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* O Círculo de Carregamento (Spinner) */
  .loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #041221;
    /* Cor da superfície dos cards */
    border-top: 5px solid #d4af37;
    /* Dourado Lúmina em destaque */
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  /* Animação de rotação contínua */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }