* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body[data-lang="vi"] .vi {
  display: inline;
}
body[data-lang="vi"] .en {
  display: none;
}

body[data-lang="en"] .vi {
  display: none;
}
body[data-lang="en"] .en {
  display: inline;
}

.lang-switch button {
  margin: 0 5px;
  padding: 8px 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;

  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); */
}

.lang-switch button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lang-switch button:active {
  transform: translateY(0);
}

/* From Uiverse.io by cbolson */ 
.switch {
  --_switch-bg-clr: #70a9c5;
  --_switch-padding: 2px; /* padding around button*/
  --_slider-bg-clr: rgba(12, 74, 110, 0.65); /* slider color unchecked */
  --_slider-bg-clr-on: rgba(12, 74, 110, 1); /* slider color checked */
  --_slider-txt-clr: #ffffff;
  --_label-padding: 0.5rem 1rem; /* padding around the labels -  this gives the switch it's global width and height */
  --_switch-easing: cubic-bezier(
    0.47,
    1.64,
    0.41,
    0.8
  ); /* easing on toggle switch */
  color: white;
  width: fit-content;
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: 9999px;
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  isolation: isolate;
}

.switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.switch > span {
  display: grid;
  place-content: center;
  transition: opacity 300ms ease-in-out 150ms;
  padding: var(--_label-padding);
}
.switch::before,
.switch::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  transition: inset 150ms ease-in-out;
}
/* switch slider */
.switch::before {
  background-color: var(--_slider-bg-clr);
  inset: var(--_switch-padding) 50% var(--_switch-padding)
    var(--_switch-padding);
  transition:
    inset 500ms var(--_switch-easing),
    background-color 500ms ease-in-out;
  z-index: -1;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.3),
    0 1px rgba(255, 255, 255, 0.3);
}
/* switch bg color */
.switch::after {
  background-color: var(--_switch-bg-clr);
  inset: 0;
  z-index: -2;
}
/* switch hover & focus */
.switch:focus-within::after {
  inset: -0.25rem;
}
.switch:has(input:checked):hover > span:first-of-type,
.switch:has(input:not(:checked)):hover > span:last-of-type {
  opacity: 1;
  transition-delay: 0ms;
  transition-duration: 100ms;
}
/* switch hover */
.switch:has(input:checked):hover::before {
  inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding)
    45%;
}
.switch:has(input:not(:checked)):hover::before {
  inset: var(--_switch-padding) 45% var(--_switch-padding)
    var(--_switch-padding);
}
/* checked - move slider to right */
.switch:has(input:checked)::before {
  background-color: var(--_slider-bg-clr-on);
  inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding)
    50%;
}
/* checked - set opacity */
.switch > span:last-of-type,
.switch > input:checked + span:first-of-type {
  opacity: 0.75;
}
.switch > input:checked ~ span:last-of-type {
  opacity: 1;
}


body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8edf2 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.header {
  background-image: linear-gradient(
      to right,
      rgb(25, 81, 148, 1),
      rgba(255, 255, 255, 0)
    ),
    url(../assets/images/dhxd.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid white;
}

.title {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav {
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffeb3b;
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 16px;
}

.datetime {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-content {
  position: relative;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../assets/images/thive_02-min-1024x576.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 30px 20px;
  margin: 0;
}

.login-section {
  text-align: center;
  margin-bottom: 50px;
}

.login-title {
  font-size: 36px;
  color: #1976d2;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 500;
}

.login-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-card:hover::before {
  left: 100%;
}

.login-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #1976d2;
}

.card-icon-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-card:nth-child(3) .card-icon-img {
  background: #fc7240;
}

.card-title h1 {
  font-size: 3rem;
}

.card-icon-img img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.login-card:hover .card-icon-img {
  transform: scale(1.1);
  border-radius: 16px;
}

.card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.login-card:hover .card-icon::after {
  transform: scale(1);
}

.card-icon.red {
  background: linear-gradient(135deg, #c41e3a 0%, #d32f2f 100%);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.card-icon.green {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.card-icon i {
  z-index: 1;
  position: relative;
}

.card-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.login-card:hover .card-title {
  color: #1976d2;
}

.card-description {
  text-align: center;
  font-size: 14px;
  color: #196bbd;
  margin-top: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.footer {
  background: linear-gradient(rgba(23, 55, 107, 0.95), rgba(23, 55, 107, 0.95)),
    url("../assets/images/Hồ Sơ Năng Lực_web-18.png") center/cover no-repeat;
  color: white;
  padding: 10px 0;
  font-family: "Segoe UI", sans-serif;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  flex: 1;
  min-width: 300px;
  padding: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-right {
  flex: 2;
  min-width: 300px;
  padding: 5px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: start;
  gap: 10px;
}

.contact-details {
  text-align: start;
  margin-bottom: 20px;
}

.contact-details p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
}

.training-info {
  text-align: center;
  margin-top: 10px;
}

.training-info p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
}

.corporate-training {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.system-info h3 {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 15px;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.system-info p {
  font-size: 16px;
  margin-bottom: 25px;
  color: white;
  line-height: 1.4;
  font-weight: 500;
}

.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.location {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.location h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-left: 20px;
  font-weight: 400;
}

/* Responsive design - CẢI THIỆN */
@media (max-width: 1200px) {
  .main-content {
    padding: 30px 40px;
  }
}

@media (max-width: 992px) {
  .login-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .card-title h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-content {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .title {
    font-size: 20px;
  }

  .logo-section img {
    width: 50px;
    height: 50px;
  }

  .main-content {
    padding: 20px 15px;
  }

  .login-title {
    font-size: 28px;
  }

  .login-subtitle {
    font-size: 16px;
  }

  .login-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .card-title h1 {
    font-size: 2.2rem;
  }

  .card-title h3 {
    font-size: 16px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
  }

  .footer-right {
    padding-top: 30px;
  }

  .contact-details p,
  .training-info p {
    justify-content: flex-start;
    font-size: 14px;
  }

  .system-info h3 {
    font-size: 22px;
    flex-direction: column;
    gap: 5px;
  }

  .contact-info h3 {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .header {
    background-image: linear-gradient(
        to bottom,
        rgba(25, 81, 148, 0.9),
        rgba(25, 81, 148, 0.7)
      ),
      url(../assets/images/dhxd.jpg);
  }

  .title {
    font-size: 18px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }

  .datetime {
    font-size: 13px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .card-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .card-title h1 {
    font-size: 2rem;
  }

  .card-description {
    font-size: 13px;
  }

  .footer {
    padding: 15px 0;
  }

  .footer-container {
    padding: 0 15px;
  }

  .location h4 {
    font-size: 15px;
  }

  .location p {
    font-size: 13px;
  }
}

/* Animation cho các phần tử khi load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeInUp 0.6s ease forwards;
}

.login-card:nth-child(1) {
  animation-delay: 0.1s;
}
.login-card:nth-child(2) {
  animation-delay: 0.2s;
}
.login-card:nth-child(3) {
  animation-delay: 0.3s;
}
