/* style/login.css */
.page-login {
  background-color: #F4F7FB; /* Nền trang theo custom colors */
  color: #1F2D3D; /* Màu chữ chính theo custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 10px; /* Nhỏ hơn so với header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

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

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

.page-login__content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-container {
  background-color: #FFFFFF; /* Card BG theo custom colors */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-weight: 700;
  color: #1F2D3D; /* Text Main theo custom colors */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* H1 font-size clamp */
}

.page-login__description {
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1F2D3D;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border theo custom colors */
  border-radius: 5px;
  font-size: 1rem;
  color: #1F2D3D;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #666;
}

.page-login__options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.page-login__forgot-password {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.page-login__button-container {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-login__register-text {
  text-align: center;
  color: #1F2D3D;
  font-size: 0.95rem;
}

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

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

.page-login__divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: #666;
}

.page-login__divider::before, .page-login__divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__divider:not(:empty)::before {
  margin-right: .5em;
}

.page-login__divider:not(:empty)::after {
  margin-left: .5em;
}

.page-login__social-login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-login__social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.page-login__social-btn {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
  color: #ffffff;
}

.page-login__social-btn--facebook:hover {
  background-color: #2d4373;
  box-shadow: 0 3px 10px rgba(59, 89, 152, 0.4);
}

.page-login__social-btn--google {
  background-color: #ea4335;
  color: #ffffff;
}

.page-login__social-btn--google:hover {
  background-color: #c73223;
  box-shadow: 0 3px 10px rgba(234, 67, 53, 0.4);
}

.page-login__social-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-login__security-section {
  padding: 60px 20px;
  background-color: #F4F7FB; /* Background color */
  color: #1F2D3D;
  text-align: center;
}

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

.page-login__security-title {
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: block;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-login__security-text p {
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__security-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #1F2D3D;
}

.page-login__security-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2F6BFF; /* Main color */
  font-weight: bold;
}

.page-login__btn-learn-more {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-learn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__form-container {
    padding: 30px;
    max-width: 450px;
  }

  .page-login__main-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }

  .page-login__security-content {
    flex-direction: column;
  }

  .page-login__security-image,
  .page-login__security-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important;
    min-height: auto;
    padding-bottom: 30px;
  }

  .page-login__hero-image-container {
    height: 60vh;
  }

  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-login__content-wrapper {
    padding: 15px;
  }

  .page-login__form-container {
    padding: 25px;
    max-width: 100%;
  }

  .page-login__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .page-login__label {
    font-size: 0.9rem;
  }

  .page-login__input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .page-login__options {
    margin-bottom: 15px;
  }

  .page-login__forgot-password {
    font-size: 0.85rem;
  }

  .page-login__button-container,
  .page-login__btn-login {
    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__social-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__social-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__social-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-login__security-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 30px;
  }

  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__security-text {
    padding-top: 20px;
  }

  .page-login__security-text p,
  .page-login__security-list li {
    font-size: 0.9rem;
  }

  .page-login__btn-learn-more {
    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;
  }
  
  /* General image and container rules for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form,
  .page-login__social-login-section,
  .page-login__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__social-login-section .page-login__social-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}