/* ===== ESTILOS DO MODAL ===== */
.login-modal { 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
      
  
  .login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1;
  }
  
  .login-modal-content {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 420px;
    animation: modalFadeIn 0.3s ease-out;
  }
  
  /* Card do formulário */
  .ntr-login-card {
    background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(46, 139, 87, 0.25);
  overflow: hidden;
  border: none;
  transform-style: preserve-3d;
}
  
  /* HEader do modal */
  .ntr-login-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  
  /* Botão de fechar */
  .ntr-close-btn {
    position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease-out;
  }
  
  .ntr-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }
  
  /* Nome da nutria */
  .ntr-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: inline-block;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .ntr-logo-main { 
    color: white;
    position: relative;
    z-index: 1;
  }
  
  .ntr-logo-ia { 
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
  }

  .ntr-login-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
  }
  
  /* Corpo do formulário */
  .ntr-login-body {
    padding: 2rem;
    background: #ffffff;
    position: relative;
  }
  
  .ntr-login-subtitle {
    color: #5a7c6c;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Campos do formulário */
  .ntr-form-group {
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .ntr-form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .ntr-input-group {
    position: relative;
  }
  
  .ntr-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1rem;
  }
  
  .ntr-form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid #e0e6e0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fcf8;
    transition: all 0.3s ease;
    color: #2c3e50;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .ntr-form-input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
    outline: none;
    background: #fff;
  }
  
  .ntr-password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
  }
  
  .ntr-password-toggle:hover {
    color: #2E8B57;
  }
  
  /* Botão de entrar */
  .ntr-login-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .ntr-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .ntr-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
  }
  
  .ntr-login-btn:hover::after {
    opacity: 1;
  }
  
  .ntr-login-btn span {
    position: relative;
    z-index: 1;
  }

  /* Esqueci a senha */
.ntr-login-footer {
    border-top: 1px solid #e8f5ee;
    padding-top: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
  }
  
  .ntr-forgot-password {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
  }
  
  .ntr-forgot-password:hover {
    color: #27ae60;
    transform: translateX(3px);
  }
  
/* Estilo para mensagens de erro */
.ntr-error-message {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #d32f2f;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.ntr-error-message i {
  margin-right: 10px;
  font-size: 16px;
  margin-top: 2px;
}

.ntr-error-message p {
  margin: 0;
  line-height: 1.5;
}

/* Estilo para campos com erro */
.ntr-form-input.is-invalid {
  border-color: #f44336;
  background-color: #fff8f8;
}

.ntr-input-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

  /* animações */
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsivo */

  @media (max-width: 768px) {
    .login-modal-content {
        max-width: 380px;
        width: 90%;
    }

    .ntr-login-header {
        padding: 2rem 1.75rem;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .ntr-logo {
        font-size: 2.3rem;
        margin-bottom: 0.5rem;
    }

    .ntr-login-title {
        font-size: 1rem;
    }

    .ntr-login-body {
        padding: 1.75rem;
    }

    .ntr-form-input {
        padding: 15px 18px 15px 48px;
        font-size: 0.93rem;
    }

    .ntr-login-btn {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .ntr-close-btn {
        width: 34px;
        height: 34px;
        top: 18px;
        right: 18px;
    }

    .ntr-input-icon {
        left: 16px;
        font-size: 0.95rem;
    }

    .ntr-password-toggle {
        right: 16px;
        font-size: 1rem;
    }

    .ntr-login-subtitle {
        font-size: 0.93rem;
        margin-bottom: 1.75rem;
    }

    .ntr-forgot-password {
        font-size: 0.88rem;
    }
}

  @media (max-width: 480px) {
    .login-modal-content {
        width: 90%;
      }
      
      .ntr-login-header {
        padding: 2rem 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
      }
      
      .ntr-logo {
        font-size: 2.2rem;
      }
      
      .ntr-login-body {
        padding: 1.75rem;
      }
      
      .ntr-form-input {
        padding: 14px 18px 14px 46px;
      }
      
      .ntr-login-btn {
        padding: 14px 20px;
      }
  }

  /* --- MODAL DE RECUPERAÇÃO DE SENHA --- */
  :root {
    --primary-green: #27ae60;
    --secondary-green: #2ecc71;
    --light-green: #d5f5e3;
    --dark-green: #219653;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ntr-password-reset-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  z-index: 2;
  border: 1px solid rgba(46, 139, 87, 0.1);
  animation: fadeIn 0.5s ease-out;
}

.ntr-password-reset-header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.ntr-password-reset-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.ntr-password-reset-body {
  padding: 2.5rem 2rem;
  background: var(--white);
}

.ntr-password-reset-subtitle {
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ntr-reset-btn {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ntr-reset-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.ntr-back-to-login {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

.ntr-back-to-login a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ntr-back-to-login a:hover {
  color: var(--primary-green);
  transform: translateX(-3px);
}

.ntr-password-reset-decoration {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(163, 230, 205, 0.2);
  border-radius: 50%;
  z-index: 1;
}