/* Reset và base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    font-size: 16px;
    line-height: 1.5;
  }
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: linear-gradient(135deg, #faf8f2, #fffbe7, #f5e8c5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Header */
  .login-header {
      background: #A2D56F;
      border-bottom: 1px solid #eee;
      position: sticky;
      top: 0;
      z-index: 1000;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  .logo img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-right: 12px;
  }
  
  .header-title {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
  }
  
  /* Container Utility */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
  }
  
  /* Login Form */
  .login-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
  }
  
  .login-box h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    text-align: center;
  }
  
  .login-box p {
    font-size: 15px;
    color: #777;
    margin-bottom: 25px;
    text-align: center;
  }
  
  .input-group {
    margin-bottom: 20px;
  }
  
  .input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
  }
  
  .input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
  }
  
  .input-group input:focus {
    border-color: #e91e63;
  }
  
  .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .btn-login {
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: background 0.3s;
  }
  
  .btn-login:hover {
    background: #c7a030;
  }
  
  
  .forgot {
    font-size: 13px;
    color: #888;
    text-decoration: none;
  }
  
  .forgot:hover {
    text-decoration: underline;
  }

/* Wrapper cho ô nhập mật khẩu */
.password-wrapper {
    position: relative;
    width: 100%;
  }
  
  /* Định dạng cho input mật khẩu */
  .password-wrapper input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    padding-right: 45px; /* Đảm bảo không gian cho icon mắt */
    transition: border-color 0.3s;
  }
  
  /* Định dạng cho nút mắt */
  .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px; /* Đưa biểu tượng vào góc phải */
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 20px;
    transition: color 0.3s ease;
  }
  
  /* Thay đổi màu sắc của icon khi hover */
  .password-toggle:hover {
    color: #007BFF; /* Màu sắc khi hover */
  }
  
  /* Thêm khoảng cách khi focus vào input */
  .password-wrapper input:focus {
    border-color: #007BFF;
  }
  
  /* Định dạng cho biểu tượng mắt */
  #eye-icon {
    transition: color 0.3s ease;
  }
  
  /* Icon mắt ẩn */
  .fa-eye-slash {
    color: #888;
  }
  
  /* Icon mắt hiện */
  .fa-eye {
    color: #007BFF;
  }
  
  
  /* Separator Line */
  .separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
  }
  
  .separator span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #888;
  }
  
  .separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ccc;
    z-index: 1;
  }
  
  /* Social login */
  .social-login {
    text-align: center;
  }
  
  .google-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #dd4b39;
    color: #fff;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .google-btn i {
    margin-right: 8px;
  }
  
  .google-btn:hover {
    background: #c23321;
  }

  
  /* Đăng ký */
  .register-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
  }
  
  .register-text a {
    color: #e91e63;
    text-decoration: none;
  }
  
  .register-text a:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  .footer {
    background-color: #2c2c2c;
    color: #f5f5f5;
    padding: 3rem 1.5rem 1rem;
    font-size: 0.95rem;
  }
  
  .footer-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  
  .footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ff9800;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-column ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
  }
  
  .footer-column ul li a:hover {
    color: #fff;
  }
  
  
  .social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
  }
  
  .social-icons a:hover {
    color: #007bff;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #bbb;
    border-top: 1px solid #444;
    padding-top: 1rem;
  }
  footer {
    margin-top: 50px; 
  }
  

.alert-danger {
    color: red;
    background-color: #f8d7da;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}
.alert-success{
    color: #fff;
    background-color: #6ccd83;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}
.alert {
  transition: opacity 0.5s ease;
}
.success {
    background-color: #28a745;
    color: white;
    border: 1px solid #218838;
}
.error {
    border: 1px solid red;
}

.error-text {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

.is-invalid {
  border: 1px solid red;
}

  @media (max-width: 768px) {
  
    .logo img {
      height: 40px;
      margin-right: 8px;
    }
  
    .login-container {
      margin: 10px auto;
      border-radius: 10px;
      background: linear-gradient(135deg, #faf8f2, #fffbe7, #f5e8c5);
    }
    
  
    .login-box h2 {
      font-size: 20px;
    }
  
    .login-box p {
      font-size: 14px;
    }
  
    .input-group input {
      padding: 10px;
      font-size: 16px;
    }
  
    .btn-login {
      padding: 10px 15px;
      font-size: 14px;
    }
  
    .footer-wrapper {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .footer-column h3 {
      font-size: 1rem;
    }
    .separator span {
      background: #fefae5;
      color: #353434;
      }
  
    .footer {
      padding: 2rem 1rem 1rem;
    }
  
    .social-icons a {
      font-size: 1.2rem;
    }
  
    .footer-bottom {
      font-size: 0.8rem;
    }
    .some-element {
      display: none;
      }
  }
  