:root {
    --primary-color: #e62b2b;
    --secondary-color: #964141f6;
    --error-color: #f72585;
    --success-color: #4cc9f0;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #adb5bd;
    --white: #ffffff;
    --black: #000000;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    position: relative;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: url('../img/fundo1.jpg') no-repeat center center fixed;
    background-size: cover;
  }
  
  body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(5px);
    z-index: -1;
  }
  
  .login-container {
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
    backdrop-filter: blur(2px);
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .login-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .app-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .login-header h1 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 5px;
  }
  
  .login-header p {
    color: var(--dark-gray);
    font-size: 14px;
  }
  
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .input-group label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
  }
  
  .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--dark-gray);
    font-size: 16px;
  }
  
  .input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
  }
  
  .input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .toggle-password {
    left: auto !important;
    right: 15px;
    cursor: pointer;
  }
  
  .error-message {
    color: var(--error-color);
    font-size: 12px;
    height: 14px;
    margin-top: 2px;
    display: none;
  }
  
  .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
  }
  
  .remember-me input {
    accent-color: var(--primary-color);
  }
  
  .login-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .login-button:hover {
    background-color: var(--secondary-color);
  }
  
  .signup-link {
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
  }
  
  .signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
  }
  
  .signup-link a:hover {
    text-decoration: underline;
  }
  
  /* Dark Mode */
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }
  
  [data-theme="dark"] {
    --primary-color: #c74d4d;
    --secondary-color: #9c4343;
    --text-color: #f8f9fa;
    --light-gray: #212529;
    --medium-gray: #343a40;
    --white: #0a0a0a;
    --black: #ffffff;
  }
  
  [data-theme="dark"] body {
    background-color: #121212;
  }
  
  [data-theme="dark"] .login-container {
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  [data-theme="dark"] body::before {
    filter: blur(5px) brightness(0.5);
  }
  
  /* Responsividade */
  @media (max-width: 480px) {
    .login-container {
      padding: 20px;
    }
    
    .app-logo {
      width: 70px;
      height: 70px;
    }
    
    .login-header h1 {
      font-size: 22px;
    }
    
    .input-with-icon input {
      padding: 12px 12px 12px 40px;
    }
    
    .login-button {
      padding: 12px;
    }
  }

  /* Ajuste para o ícone de olho na senha */
#togglePassword {
    left: auto !important;
    right: 15px;
    cursor: pointer;
    z-index: 2;
}

/* Ajuste para inputs de senha com ícone duplo */
.input-with-icon.password-field i:first-child {
    z-index: 1; /* Garante que o ícone do cadeado fique atrás do ícone do olho */
}

/* Melhoria na mensagem de erro */
.error-message.active {
    display: block;
}

/* Ajuste para termos de uso */
.remember-me {
    color: var(--text-color);
    font-size: 14px;
}

.remember-me a {
    color: var(--primary-color);
    text-decoration: none;
}

.remember-me a:hover {
    text-decoration: underline;
}

