/* style/login.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background-color: var(--background-color, #F5F7FA);
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: #ffffff;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 8px;
}

.page-login__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: var(--card-bg, #FFFFFF);
  color: var(--text-main, #333333);
}

.page-login__container {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-login__section-title {
  text-align: center;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: 700;
}

.page-login__section-title--white {
  color: #ffffff;
}

.page-login__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: var(--text-main, #333333);
}

.page-login__section-description--white {
  color: #f0f0f0;
}

.page-login__login-form {
  background-color: var(--card-bg, #FFFFFF);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-login__form-group {
  margin-bottom: 25px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main, #333333);
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 6px;
  font-size: 1em;
  color: var(--text-main, #333333);
  background-color: #fcfcfc;
}

.page-login__password-wrapper {
  position: relative;
}

.page-login__password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 0.9em;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  color: #E53935;
  text-decoration: none;
  font-weight: 500;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: var(--text-main, #333333);
}

.page-login__register-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

.page-login__security-section {
  padding: 60px 20px;
  background-color: #E53935; /* Main brand color for dark section */
  color: #ffffff;
  text-align: center;
}

.page-login__security-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  flex: 1 1 300px;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__feature-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten icons on dark background */
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main, #333333);
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Responsive Styles --- */

/* Default image responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__description {
    font-size: 0.95em;
  }

  .page-login__form-section,
  .page-login__security-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__login-form {
    padding: 25px;
  }

  .page-login__form-input {
    width: calc(100% - 20px); /* Adjust for padding in inputs */
  }

  .page-login__security-features {
    flex-direction: column;
    gap: 20px;
  }

  .page-login__feature-item {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 25px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all content containers are responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content,
  .page-login__login-form,
  .page-login__feature-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure buttons are responsive */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure images within content areas are at least 200px where applicable, and not small icons */
.page-login__feature-icon {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* Ensure the image content is visible */
}

.page-login__hero-image {
  min-width: 200px;
  min-height: 200px;
}