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

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Adjusted for shared header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #6FA3FF 0%, #F4F7FB 100%); /* Mix of secondary and background color */
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-login__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.15rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-login__form-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 15px;
}

.page-login__section-subtitle {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: rgba(31, 45, 61, 0.6); /* Text Main with opacity */
}

.page-login__form-input:focus {
  border-color: #2F6BFF; /* Primary */
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 4px;
  background-color: #FFFFFF;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: #2F6BFF; /* Primary */
  border-color: #2F6BFF; /* Primary */
}

.page-login__checkbox:checked::before {
  content: '✔';
  display: block;
  color: #FFFFFF;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-login__checkbox-label {
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
}

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

.page-login__forgot-password:hover {
  color: #1F2D3D; /* Text Main */
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  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__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

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

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

.page-login__register-link:hover {
  color: #1F2D3D; /* Text Main */
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

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

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2F6BFF; /* Primary */
  margin-bottom: 10px;
}

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

.page-login__security-section {
  padding: 80px 0;
  background: #FFFFFF; /* Card BG */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
  font-size: 1.05rem;
  color: #1F2D3D; /* Text Main */
}

.page-login__security-text p {
  margin-bottom: 20px;
}

.page-login__security-link {
  display: inline-block;
  margin-top: 20px;
  color: #2F6BFF; /* Primary */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__security-link:hover {
  color: #1F2D3D; /* Text Main */
}

.page-login__security-image-wrapper {
  flex: 0 0 500px;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #F4F7FB 0%, #A5C4FF 100%); /* Background to Glow */
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  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-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF;
  border: none;
}

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

.page-login__btn-secondary {
  background-color: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Primary */
  border: 2px solid #2F6BFF; /* Primary */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-image-wrapper {
    padding: 0 15px;
  }

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

  .page-login__security-image-wrapper {
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Fixed header offset */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-login__hero-description {
    font-size: 1rem;
  }

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

  .page-login__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-login__section-subtitle {
    font-size: 0.95rem;
  }

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

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .page-login__submit-button,
  .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;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__cta-button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-login__benefit-card {
    padding: 25px;
  }

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

  .page-login__security-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}