#login-view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-view-wrapper {
  background-color: var(--secondary-bg); /* Đổi màu nền cho dark mode */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}

#login-view h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text-primary); /* Đổi màu chữ */
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* START: Thêm/Sửa đổi cho show password */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

#login-form input {
  padding: 12px 16px;
  border: 1px solid #444; /* Đổi màu border */
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--tertiary-bg); /* Đổi màu input */
  color: var(--text-primary); /* Đổi màu chữ input */
  width: 100%; /* Thêm để đảm bảo input chiếm đủ chiều rộng */
  box-sizing: border-box; /* Thêm để padding không làm vỡ layout */
}

/* Thêm padding bên phải cho input password để chứa icon */
#login-form #password {
  padding-right: 45px;
}

/* Kiểu cho icon */
#toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

#toggle-password:hover {
  color: var(--text-primary);
}
/* END: Thêm/Sửa đổi cho show password */

#login-form input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2);
}

#login-form button {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

#login-form button:hover {
  background-color: #0070e0;
}

#login-error {
  text-align: center;
  margin-top: 16px;
  min-height: 1em;
  font-size: 14px;
}

/* 2FA View */
.tfa-view-content {
  background-color: var(--secondary-bg); /* Đổi màu nền */
  min-height: 150px;
  width: 90%; /* Thu nhỏ trên mobile */
  max-width: 400px; /* Giới hạn chiều rộng */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tfa-title-bar {
  position: relative;
  text-align: center;
  background-color: var(--tertiary-bg); /* Đổi màu nền */
  color: white;
  padding: 10px 15px;
  width: 100%;
}

.tfa-title {
  font-weight: bold;
  font-size: 1.1em;
}

.tfa-text-qr-img {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#tfa-secret {
  cursor: pointer;
  font-size: large;
  word-break: break-all; /* Cho phép xuống dòng */
}

.tfa-text-green {
  color: var(--accent-green);
}

.tfa-text-red {
  color: var(--accent-red);
}

#tfa-verify-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  width: 100%; /* Đảm bảo full width */
}

#tfa-verify-section p {
  text-align: center;
}

.tfa-btn-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Thêm gap */
}

/* Nút trong 2FA modal */
#tfa-view button {
  width: 100%; /* Nút full-width */
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}
#tfa-verify-btn {
  background-color: var(--accent-blue);
  color: var(--text-primary);
}
#cancel-tfa-btn {
  background-color: var(--tertiary-bg);
  color: var(--accent-blue);
}
