/* modern-style.css */
/* File CSS mới cho giao diện hiện đại và thân thiện */

:root {
  --primary-color: #2962ff; /* Màu chính xanh dương đậm */
  --primary-light: #768fff;
  --primary-dark: #0039cb;
  --secondary-color: #f5f5f5;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --text-primary: #212121;
  --text-secondary: #757575;
  --background-color: #ffffff;
  --card-background: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: #f5f7fa;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Container chính */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto;
}

#container {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 2rem auto;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  flex: 1;
  padding-bottom: 1rem;
}

/* Header */
.header {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

#icon_cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#icon_cell img {
  width: 100px;
  height: auto;
  border-radius: 50%;
  background-color: white;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* Nội dung chính */
#continue {
  padding: 2rem;
}

h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Form đăng nhập */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

.icon-large {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Nút */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Thông báo */
.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* User info card */
.user-info {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.user-info p strong {
  min-width: 140px;
  color: var(--text-primary);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  background-color: #f0f2f5;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid #e0e0e0;
}

.footer h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer img {
  width: 100px;
  height: auto;
  margin: 0.5rem 0;
}

.footer p {
  margin: 0.2rem 0;
  font-size: 0.75rem;
  color: #aaa;
}

/* Responsive điều chỉnh */
@media (max-width: 768px) {
  #container {
    width: 95%;
    margin: 1rem auto;
  }
  
  #continue {
    padding: 1.5rem;
  }
}

/* Animation và hiệu ứng */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#container {
  animation: fadeIn 0.5s ease-out;
}

.btn, .form-control {
  transition: all 0.3s ease;
}

/* Tinh chỉnh cho thiết bị di động */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Các kiểu mới cho thành phần biểu tượng thành công và đăng xuất */
.success-icon, .logout-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-icon .fa-check-circle {
  color: var(--success-color);
  filter: drop-shadow(0 2px 4px rgba(0, 150, 0, 0.2));
}

.logout-icon .fa-power-off {
  color: #e53935;
  filter: drop-shadow(0 2px 4px rgba(150, 0, 0, 0.2));
}

/* Thông tin phiên và biểu tượng hệ thống */
.session-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.session-info .badge {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 30px;
  background-color: var(--primary-color);
}

/* Thông tin mạng */
.network-info {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid #ff9800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.network-info h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.network-info h3 i {
  color: #ff9800;
  margin-right: 0.5rem;
}

.network-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.network-info p i {
  width: 20px;
  margin-right: 0.5rem;
  color: var(--text-secondary);
}

/* Nút action */
.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.action-buttons .btn {
  min-width: 180px;
}

/* Client info ở footer */
.client-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-info p {
  margin: 0;
  font-size: 0.75rem;
  color: #aaa;
  display: flex;
  align-items: center;
}

.client-info p i {
  margin-right: 0.25rem;
}

/* Theme màu sắc hiện đại hơn */
:root {
  --primary-color: #1976d2;
  --primary-light: #63a4ff;
  --primary-dark: #004ba0;
}

/* Tinh chỉnh UI cho thiết bị di động */
@media (max-width: 576px) {
  .network-info .row {
    flex-direction: column;
  }
  
  .network-info .col-md-6 {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Thêm hiệu ứng thanh tiến trình tự động đăng xuất */
.auto-logout-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--primary-color);
  width: 100%;
  transform-origin: left;
  animation: countdown 28800s linear; /* 8 giờ = 28800 giây */
}

@keyframes countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
} 