* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #04304B 0%, #22845B 100%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      position: relative;
      overflow-x: hidden;
    }

    /* Animação de fundo */
    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
      opacity: 0.3;
      animation: float 20s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(1deg); }
    }

    .login-container {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      padding: 2.5rem;
      border-radius: 20px;
      box-shadow: 
        0 25px 50px rgba(4, 48, 75, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
      width: 100%;
      max-width: 420px;
      position: relative;
      animation: slideUp 0.8s ease-out;
      transition: all 0.3s ease;
    }

    .login-container:hover {
      transform: translateY(-5px);
      box-shadow: 
        0 35px 70px rgba(4, 48, 75, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-container {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
      position: relative;
    }

    .logo {
      max-width: 200px;
      height: auto;
      max-height: 120px;
      object-fit: contain;
      transition: all 0.3s ease;
      animation: logoFloat 3s ease-in-out infinite;
      filter: drop-shadow(0 4px 8px rgba(4, 48, 75, 0.2));
    }

    @keyframes logoFloat {
      0%, 100% { transform: translateY(0px) scale(1); }
      50% { transform: translateY(-5px) scale(1.02); }
    }

    .logo:hover {
      transform: scale(1.05);
      filter: drop-shadow(0 8px 16px rgba(4, 48, 75, 0.3));
    }

    .login-title {
      text-align: center;
      margin-bottom: 2rem;
      color: #04304B;
      font-size: 2rem;
      font-weight: 600;
      letter-spacing: -0.5px;
      position: relative;
    }

    .login-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 3px;
      background: linear-gradient(135deg, #22845B, #04304B);
      border-radius: 2px;
    }

    .form-group {
      margin-bottom: 1.5rem;
      position: relative;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      color: #04304B;
      font-weight: 600;
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-icon {
      position: absolute;
      left: 15px;
      color: #22845B;
      font-size: 1.1rem;
      z-index: 2;
      transition: color 0.3s ease;
    }

    .form-group input {
      width: 100%;
      padding: 1rem 1rem 1rem 45px;
      border: 2px solid #e1e8ed;
      border-radius: 12px;
      font-size: 1rem;
      transition: all 0.3s ease;
      background: #FFFFFF;
      color: #04304B;
    }

    .form-group input::placeholder {
      color: rgba(4, 48, 75, 0.5);
    }

    .form-group input:focus {
      outline: none;
      border-color: #22845B;
      box-shadow: 0 0 0 4px rgba(34, 132, 91, 0.1);
      transform: translateY(-2px);
    }

    .form-group input:focus + .input-icon,
    .form-group.focused .input-icon {
      color: #04304B;
    }

    .form-group input:focus ~ label,
    .form-group.focused label {
      color: #22845B;
    }

    .btn {
      width: 100%;
      padding: 1rem;
      background: linear-gradient(135deg, #22845B 0%, #04304B 100%);
      color: #FFFFFF;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      margin-top: 1rem;
      font-size: 1.1rem;
      font-weight: 600;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(34, 132, 91, 0.4);
      background: linear-gradient(135deg, #1a6b47 0%, #032a3d 100%);
    }

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

    .separator {
      text-align: center;
      margin: 2rem 0;
      position: relative;
      color: #04304B;
      font-weight: 500;
    }

    .separator::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(4, 48, 75, 0.3), transparent);
    }

    .separator span {
      background: #FFFFFF;
      padding: 0 1rem;
      position: relative;
      z-index: 1;
    }

    /* Google Sign-in customization */
    .g_id_signin {
      display: flex !important;
      justify-content: center !important;
      margin-top: 1rem;
    }

    .g_id_signin > div {
      width: 100% !important;
      border-radius: 12px !important;
      overflow: hidden !important;
      border: 2px solid #e1e8ed !important;
      transition: all 0.3s ease !important;
    }

    .g_id_signin > div:hover {
      border-color: #22845B !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(34, 132, 91, 0.2);
    }

    /* Loading animation */
    .loading {
      position: relative;
      pointer-events: none;
    }

    .loading::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top: 2px solid #FFFFFF;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Responsive Design */
    @media (max-width: 480px) {
      body {
        padding: 15px;
      }

      .login-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-width: 100%;
      }

      .logo {
        max-width: 160px;
        max-height: 100px;
      }

      .login-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
      }

      .form-group {
        margin-bottom: 1.2rem;
      }

      .form-group input {
        padding: 0.9rem 0.9rem 0.9rem 40px;
        font-size: 0.95rem;
      }

      .input-icon {
        left: 12px;
        font-size: 1rem;
      }

      .btn {
        padding: 0.9rem;
        font-size: 1rem;
      }
    }

    @media (max-width: 360px) {
      .login-container {
        padding: 1.5rem 1rem;
      }

      .logo {
        max-width: 140px;
        max-height: 80px;
      }

      .login-title {
        font-size: 1.6rem;
      }
    }

    /* Accessibility improvements */
    .form-group input:focus-visible {
      outline: 2px solid #22845B;
      outline-offset: 2px;
    }

    .btn:focus-visible {
      outline: 2px solid #FFFFFF;
      outline-offset: 2px;
    }

    /* Animation for form validation */
    .form-group.error input {
      border-color: #e74c3c;
      animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }

    .error-message {
      color: #e74c3c;
      font-size: 0.8rem;
      margin-top: 0.5rem;
      display: none;
    }

    .form-group.error .error-message {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Success state */
    .form-group.success input {
      border-color: #22845B;
    }

    .form-group.success .input-icon {
      color: #22845B;
    }

    /* Additional visual enhancements */
    .login-container::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: linear-gradient(135deg, #22845B, #04304B);
      border-radius: 22px;
      z-index: -1;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .login-container:hover::before {
      opacity: 0.1;
    }

    /* Improved button states */
    .btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none !important;
    }

    .btn.success {
      background: linear-gradient(135deg, #22845B, #1a6b47);
    }

    /* Enhanced focus states */
    .form-group input:focus {
      box-shadow: 
        0 0 0 4px rgba(34, 132, 91, 0.1),
        0 4px 12px rgba(4, 48, 75, 0.1);
    }


    /* Modal de alteração de senha - CSS isolado */
#password-change-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

#password-change-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#password-change-modal .modal-container {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

#password-change-modal.active .modal-container {
    transform: scale(1) translateY(0) !important;
}

#password-change-modal .modal-header {
    background: linear-gradient(135deg, #04304B 0%, #22845B 100%);
            color: #F7F3E8 !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 12px 12px 0 0 !important;
    text-align: center !important;
    margin: 0 !important;
}

#password-change-modal .modal-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: white !important;
}

#password-change-modal .modal-header i {
    margin-right: 10px !important;
    font-size: 22px !important;
}

#password-change-modal .modal-body {
    padding: 30px !important;
    background: white !important;
}

#password-change-modal .alert-warning {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    color: #856404 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

#password-change-modal .alert-warning i {
    font-size: 20px !important;
    color: #f39c12 !important;
    margin-top: 2px !important;
}

#password-change-modal .user-info {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    border-left: 4px solid #667eea !important;
}

#password-change-modal .user-info h3 {
    margin: 0 0 5px 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#password-change-modal .user-info p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
}

#password-change-modal .form-group {
    margin-bottom: 20px !important;
}

#password-change-modal .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

#password-change-modal .form-group input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
    color: #333 !important;
}

#password-change-modal .form-group input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

#password-change-modal .form-group.error input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

#password-change-modal .error-message {
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
}

#password-change-modal .password-requirements {
    margin-top: 8px !important;
}

#password-change-modal .password-requirements small {
    color: #666 !important;
    font-size: 12px !important;
    transition: color 0.3s ease !important;
}

#password-change-modal .modal-actions {
    margin-top: 25px !important;
}

#password-change-modal .modal-actions .btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #04304B 0%, #22845B 100%);
            color: #F7F3E8;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
}

#password-change-modal .modal-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

#password-change-modal .modal-actions .btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#password-change-modal .modal-actions .btn.loading {
    background: #6c757d !important;
}

#password-change-modal .modal-actions .btn.success {
    background: #28a745 !important;
}

#password-change-modal .modal-actions .btn.error {
    background: #dc3545 !important;
}

#password-change-modal .modal-footer {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
}

#password-change-modal .modal-footer p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
}

#password-change-modal .modal-footer i {
    color: linear-gradient(135deg, #04304B 0%, #22845B 100%)!important;
    
    margin-right: 8px !important;
}

/* Responsividade */
@media (max-width: 768px) {
    #password-change-modal .modal-container {
        width: 95% !important;
        margin: 20px !important;
    }
    
    #password-change-modal .modal-body {
        padding: 20px !important;
    }
}
/* ✅ ALERTAS FLUTUANTES - Mantendo a estrutura atual */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Animação de entrada */
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mostrar alerta */
.alert.show {
    transform: translateX(0);
    opacity: 1;
}

/* Esconder alerta */
.alert.hide {
    transform: translateX(450px);
    opacity: 0;
}

/* Tipos de alerta */
.alert-error {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4, #ffffff);
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbf0, #ffffff);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Ícone do alerta */
.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-error .alert-icon {
    color: #dc3545;
}

.alert-success .alert-icon {
    color: #28a745;
}

.alert-warning .alert-icon {
    color: #ffc107;
}

.alert-info .alert-icon {
    color: #17a2b8;
}

/* Conteúdo do alerta */
.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-message,
.alert-message-long {
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

.alert-message-long {
    white-space: pre-line;
}

/* Linhas de erro formatadas */
.error-line {
    margin-bottom: 8px;
    padding: 2px 0;
    display: block;
}

.error-line:last-child {
    margin-bottom: 0;
}

/* Destacar diferentes tipos de linha */
.error-line:contains("📧"),
.error-line:contains("🔒") {
    font-weight: 600;
}

.error-line:contains("💡"),
.error-line:contains("📋") {
    font-style: italic;
    opacity: 0.9;
}

/* Botão de fechar */
.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
}

.alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Barra de progresso opcional */
.alert::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 12px 12px;
    opacity: 0.3;
    transform-origin: left;
    animation: alertProgress 5s linear forwards;
}

@keyframes alertProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .alert.show {
        transform: translateY(0);
    }
    
    .alert.hide {
        transform: translateY(-100px);
    }
}

/* Múltiplos alertas - empilhamento */
.alert:nth-of-type(2) {
    top: 100px;
}

.alert:nth-of-type(3) {
    top: 180px;
}

.alert:nth-of-type(4) {
    top: 260px;
}

.alert:nth-of-type(5) {
    top: 340px;
}

/* Animação de entrada suave */
@keyframes alertSlideIn {
    from {
        transform: translateX(450px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.alert.animate-in {
    animation: alertSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effect */
.alert:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.alert:hover::after {
    animation-play-state: paused;
}