/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được viết lại padding-top cho body hoặc main */

.page-login {
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */\  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* enforce top-image-bottom-text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 40px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: #F4F7FB; /* Background */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%; /* Ensure it fills its container */
}

.page-login__hero-content {
  max-width: 800px;
  margin-top: 30px; /* Space between image and content */
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font size constraint */
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #F4F7FB; /* Background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-container {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #D6E2FF; /* Border */
}

.page-login__form-title {
  font-size: 1.8em;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  color: #1F2D3D; /* Text Main */
  background-color: #FFFFFF;
}

.page-login__form-input::placeholder {
  color: #888;
}

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

.page-login__forgot-password-link {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #6FA3FF; /* Auxiliary color */
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

.page-login__register-link {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #6FA3FF; /* Auxiliary color */
}

/* App Download Section */
.page-login__app-download-section {
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* For app image position */
}

.page-login__app-download-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.page-login__app-download-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__app-download-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f8ff;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background-color: #ffffff;
  color: #2F6BFF; /* Primary color */
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

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

.page-login__app-image {
  position: absolute;
  right: -50px; /* Adjust as needed */
  bottom: -50px; /* Adjust as needed */
  max-width: 350px;
  height: auto;
  opacity: 0.2;
  z-index: 0;
  transform: rotate(15deg);
  display: block; /* Ensure it's not inline */
  filter: none; /* No filter */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-login__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefits-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 50px;
  font-weight: bold;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__benefit-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); 
}

.page-login__benefit-icon {
  width: 100px; /* Display width */
  height: 100px; /* Display height */
  margin-bottom: 20px;
  filter: none; /* No filter */
  max-width: 100%; /* Ensure responsiveness */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-heading {
  font-size: 1.4em;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f8ff;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body already handles offset */
    padding-bottom: 30px;
  }

  .page-login__hero-content {
    margin-top: 20px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

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

  .page-login__form-section,
  .page-login__app-download-section,
  .page-login__benefits-section,
  .page-login__cta-section {
    padding: 40px 15px !important;
  }

  .page-login__form-container {
    padding: 30px 20px;
  }

  .page-login__form-title {
    font-size: 1.5em;
  }

  /* Images responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__app-download-content,
  .page-login__benefits-container,
  .page-login__cta-content,
  .page-login__form-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__app-image {
    position: static;
    transform: none;
    margin: 30px auto 0;
    opacity: 0.5;
    max-width: 250px !important;
    width: 100% !important;
  }

  /* Buttons responsiveness */
  .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__app-download-content,
  .page-login__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__benefit-card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-login__benefit-icon {
    width: 80px;
    height: 80px;
  }
}