/**
 * CSS cho xác thực hai yếu tố
 */

/* Modal xác thực */
.two-fa-login-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.two-fa-login-modal .modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s;
}

/* Tiêu đề và nút đóng */
.two-fa-login-modal h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 20px;
  font-size: 1.6rem;
  text-align: center;
  position: relative;
}

.two-fa-login-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.two-fa-login-modal .close-modal:hover {
  color: #333;
}

/* Form nhập mã */
.two-fa-login {
  text-align: center;
}

.two-fa-login p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1rem;
}

/* Input mã xác thực */
.two-fa-login .verification-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px auto;
  max-width: 350px;
}

.two-fa-login .verification-input {
  width: 40px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.two-fa-login .verification-input:focus {
  border-color: #f26522;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

/* Thông báo */
.two-fa-login .verification-message {
  height: 24px;
  margin: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.two-fa-login .verification-message.success {
  color: #4CAF50;
}

.two-fa-login .verification-message.error {
  color: #f44336;
}

/* Tùy chọn mã dự phòng */
.two-fa-login .two-fa-options {
  margin: 20px 0;
}

.two-fa-login #useBackupCode {
  background: none;
  border: none;
  color: #1976d2;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 5px 10px;
}

.two-fa-login #useBackupCode:hover {
  color: #0d47a1;
}

/* Phần nhập mã dự phòng */
.two-fa-login .backup-code-section {
  margin: 20px 0;
}

.two-fa-login #backupCodeInput {
  width: 100%;
  max-width: 280px;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.two-fa-login #backupCodeInput:focus {
  border-color: #f26522;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.1);
}

/* Nút thao tác */
.two-fa-login .modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.two-fa-login .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.two-fa-login .btn-primary {
  background-color: #f26522;
  color: white;
}

.two-fa-login .btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.two-fa-login .btn-primary:hover {
  background-color: #e55511;
}

.two-fa-login .btn-secondary:hover {
  background-color: #d0d0d0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .two-fa-login-modal .modal-content {
    margin: 15% auto;
    padding: 20px;
  }
  
  .two-fa-login .verification-input {
    width: 35px;
    height: 40px;
    font-size: 18px;
  }
  
  .two-fa-login-modal h2 {
    font-size: 1.4rem;
  }
} 