    :root {
      --primary-blue: #3b82f6;
      --primary-blue-dark: #2563eb;
      --primary-blue-light: #60a5fa;
      --primary-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
      --bg-dark: #0f172a;
      --bg-card-dark: rgba(30, 41, 59, 0.9);
      --text-light: #f1f5f9;
      --text-muted: #94a3b8;
      --border-blue: rgba(59, 130, 246, 0.3);
      --success-color: #10b981;
      --warning-color: #f59e0b;
    }
    
    /* ===== LAYOUT PRINCIPAL ===== */
    body {
      min-height: 100vh;
      margin: 0;
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
      position: relative;
      overflow-x: hidden;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    
    /* Efeitos de background azul */
    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(29, 78, 216, 0.15) 0%, transparent 50%);
      z-index: -1;
    }
    
    /* Container principal */
    .auth-container {
      width: 100%;
      max-width: 420px;
      animation: slideUp 0.6s ease-out;
    }
    
    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* ===== CARD DE AUTENTICAÇÃO ===== */
    .auth-card {
      background: var(--bg-card-dark);
      backdrop-filter: blur(15px);
      border: 1px solid var(--border-blue);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    }
    
    /* Cabeçalho */
    .auth-header {
      padding: 2.5rem 2rem 1.5rem;
      text-align: center;
      background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
      border-bottom: 1px solid var(--border-blue);
    }
    
    /* Logo */
    .logo-main {
      font-size: 2.5rem;
      font-weight: 800;
      background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }
    
    .logo-main i {
      font-size: 2.8rem;
      filter: drop-shadow(1 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    .logo-subtitle {
      color: var(--text-muted);
      font-size: 0.95rem;
      letter-spacing: 0.5px;
    }
    
    /* ===== FORMULÁRIO ===== */
    .auth-body {
      padding: 2rem;
    }
    
    /* Grupos de input */
    .input-group-custom {
      margin-bottom: 1.5rem;
    }
    
    .input-label {
      display: block;
      color: #cbd5e1;
      font-size: 0.9rem;
      font-weight: 500;
      margin-bottom: 8px;
      padding-left: 4px;
    }
    
    .input-with-icon {
      position: relative;
    }
    
    .input-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-blue);
      font-size: 1.1rem;
      z-index: 2;
    }
    
    /* Inputs */
    .auth-input {
      width: 100%;
      background: rgba(15, 23, 42, 0.7);
      border: 2px solid var(--border-blue);
      border-radius: 12px;
      color: var(--text-light);
      padding: 14px 16px 14px 48px;
      font-size: 1rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .auth-input:focus {
      background: rgba(15, 23, 42, 0.9);
      border-color: var(--primary-blue);
      box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
      outline: none;
    }
    
    /* Botão de visualizar senha */
    .password-toggle {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 1.1rem;
      padding: 4px;
      transition: color 0.3s;
      z-index: 2;
    }
    
    .password-toggle:hover {
      color: var(--primary-blue);
    }
    
    /* Checkbox Lembrar usuário */
    .remember-me {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 1rem 0 1.5rem;
      cursor: pointer;
      user-select: none;
    }
    
    .remember-checkbox {
      width: 18px;
      height: 18px;
      border: 2px solid var(--border-blue);
      border-radius: 4px;
      background: rgba(15, 23, 42, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }
    
    .remember-checkbox.checked {
      background: var(--primary-blue);
      border-color: var(--primary-blue);
    }
    
    .remember-checkbox.checked::after {
      content: '✓';
      color: white;
      font-size: 12px;
      font-weight: bold;
    }
    
    .remember-label {
      color: var(--text-muted);
      font-size: 0.9rem;
    }

        /* Checkbox Termos */
    .terms-check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 1.5rem 0;
      cursor: pointer;
      user-select: none;
    }
    
    .terms-checkbox {
      min-width: 18px;
      height: 18px;
      border: 2px solid var(--border-blue);
      border-radius: 4px;
      background: rgba(15, 23, 42, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      margin-top: 3px;
    }
    
    .terms-checkbox.checked {
      background: var(--primary-blue);
      border-color: var(--primary-blue);
    }
    
    .terms-checkbox.checked::after {
      content: '✓';
      color: white;
      font-size: 12px;
      font-weight: bold;
    }
    
    .terms-label {
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.4;
    }
    
    .terms-link {
      color: var(--primary-blue);
      text-decoration: none;
      border-bottom: 1px dashed var(--primary-blue);
    }
    
    .terms-link:hover {
      border-bottom-style: solid;
    }
    
    
    /* ===== BOTÃO PRINCIPAL ===== */
    .btn-auth {
      background: var(--primary-blue-gradient);
      border: none;
      border-radius: 12px;
      color: white;
      font-weight: 600;
      font-size: 1rem;
      padding: 16px;
      width: 100%;
      margin-top: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }
    
    .btn-auth::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.6s;
    }
    
    .btn-auth:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    }
    
    .btn-auth:hover::before {
      left: 100%;
    }
    
    .btn-auth:active {
      transform: translateY(0);
    }
    
    /* ===== LINKS ===== */
    .auth-links {
      margin-top: 2rem;
      text-align: center;
    }
    
    .link-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-muted);
      text-decoration: none;
      padding: 8px 16px;
      border-radius: 8px;
      transition: all 0.3s;
      margin: 0 4px;
    }
    
    .link-item:hover {
      color: var(--primary-blue);
      background: rgba(59, 130, 246, 0.1);
      transform: translateY(-1px);
    }

        /* ===== LINK VOLTAR ===== */
    .back-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--text-muted);
      text-decoration: none;
      margin-top: 2rem;
      padding: 10px;
      border-radius: 8px;
      transition: all 0.3s;
    }
    
    .back-link:hover {
      color: var(--primary-blue);
      background: rgba(59, 130, 246, 0.1);
      transform: translateY(-1px);
    }

        /* Instruções */
    .instructions {
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid var(--border-blue);
      border-radius: 12px;
      padding: 1rem;
      margin: 1.5rem 0;
    }
    
    .instructions-title {
      color: var(--primary-blue);
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .instructions-text {
      color: var(--text-muted);
      font-size: 0.85rem;
      line-height: 1.5;
    }
    
    /* ===== MENSAGEM DE SUCESSO ===== */
    .success-message {
      text-align: center;
      padding: 2rem;
      display: none;
    }
    
    .success-icon {
      font-size: 3.5rem;
      color: var(--success-color);
      margin-bottom: 1rem;
      animation: bounce 1s;
    }

    /* Validação de senha */
    .password-strength {
      margin-top: 8px;
    }
    
    .strength-bar {
      height: 4px;
      background: #374151;
      border-radius: 2px;
      overflow: hidden;
      margin-bottom: 4px;
    }
    
    .strength-fill {
      height: 100%;
      width: 0%;
      background: var(--warning-color);
      transition: width 0.3s, background-color 0.3s;
    }
    
    .strength-fill.weak { 
      width: 33%; 
      background: #ef4444; 
    }
    
    .strength-fill.medium { 
      width: 66%; 
      background: var(--warning-color); 
    }
    
    .strength-fill.strong { 
      width: 100%; 
      background: var(--success-color); 
    }
    
    .strength-text {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    
    /* Requisitos da senha */
    .password-requirements {
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid var(--border-blue);
      border-radius: 12px;
      padding: 1rem;
      margin: 1.5rem 0;
    }
    
    .requirements-title {
      color: var(--primary-blue);
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .requirement-item {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 0.85rem;
    }
    
    .requirement-icon {
      color: #6b7280;
      font-size: 0.8rem;
    }
    
    .requirement-icon.valid {
      color: var(--success-color);
    }
    
    .requirement-text {
      color: var(--text-muted);
    }
    
    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
      40% {transform: translateY(-20px);}
      60% {transform: translateY(-10px);}
    }
    
    .success-title {
      color: var(--success-color);
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }
    
    .success-text {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }

    /* ===== TEMA CLARO ===== */
    [data-bs-theme="light"] body {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    }
    
    [data-bs-theme="light"] .auth-card {
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    [data-bs-theme="light"] .auth-header {
      background: linear-gradient(to right, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    }
    
    [data-bs-theme="light"] .auth-input {
      background: rgba(240, 249, 255, 0.9);
      border-color: rgba(59, 130, 246, 0.2);
      color: #1e293b;
    }
    
    [data-bs-theme="light"] .auth-input:focus {
      background: white;
      border-color: var(--primary-blue);
    }
    
    [data-bs-theme="light"] .input-label,
    [data-bs-theme="light"] .remember-label {
      color: #475569;
    }
    
    [data-bs-theme="light"] .link-item {
      color: #64748b;
    }
    
    [data-bs-theme="light"] .link-item:hover {
      background: rgba(59, 130, 246, 0.08);
    }