/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Main text color for dark background */
  line-height: 1.6;
  background-color: #08160F; /* Overall page background */
}

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

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding as per shared.css body padding */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column; /* Image above text on mobile, or text above image on desktop */
  align-items: center;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green background for hero */
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  max-width: 700px;
  margin: 0 auto;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__login-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__card-title {
  font-size: 2em;
  color: #F2FFF6;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8;
  font-size: 0.95em;
  font-weight: 500;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly darker input background */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__input::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-login__input:focus {
  border-color: #57E38D; /* Glow color on focus */
  outline: none;
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  font-size: 0.9em;
  color: #A7D9B8;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-login__remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.page-login__checkbox {
  margin-right: 10px;
  appearance: none; /* Hide default checkbox */\  width: 20px;
  height: 20px;
  border: 2px solid #2E7A4E;
  border-radius: 4px;
  background-color: rgba(17, 39, 27, 0.7);
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #11A84E;
  border-color: #11A84E;
}

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

.page-login__checkbox-label {
  color: #A7D9B8;
  font-size: 0.95em;
  cursor: pointer;
}

.page-login__button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.3);
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.4);
}

.page-login__register-prompt {
  text-align: center;
  color: #A7D9B8;
  margin-top: 30px;
  font-size: 1em;
}

.page-login__register-link {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #F2C14E; /* Gold color on hover */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  line-height: 1.3;
}

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

.page-login__benefit-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 250px; /* Min size 200px, so 250px is fine */
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Added border-radius for consistency */
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 0.95em;
  color: #A7D9B8;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-text {
  flex: 1.5;
  min-width: 300px;
  color: #A7D9B8;
}

.page-login__security-text p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-login__inline-link {
  color: #57E38D;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-login__inline-link:hover {
  color: #F2C14E;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Brand colors gradient */
  text-align: center;
}

.page-login__cta-title {
  font-size: 2.8em;
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__cta-description {
  font-size: 1.2em;
  color: #F2FFF6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container fills width */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden; /* For mobile overflow prevention */
}

.page-login__btn-secondary {
  background-color: #F2FFF6;
  color: #11A84E;
  border: 2px solid #11A84E;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Universal image responsiveness (for content images) */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-bottom: 30px;
  }
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 2.2em;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image {
    max-width: 100%;
  }
}

/* Mobile responsive styles (max-width: 768px) - MUST BE COMPLETE */
@media (max-width: 768px) {
  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding as per shared.css body padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-content {
    margin-bottom: 20px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__hero-image-wrapper {
    margin-top: 15px;
  }

  /* Form Section */
  .page-login__form-section {
    padding: 60px 15px;
  }
  .page-login__login-card {
    padding: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__input {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-login__button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 60px 15px;
  }
  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__benefit-icon {
    width: 200px !important; /* Ensure min 200px on mobile too */
    height: 200px !important;
  }
  .page-login__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Security Section */
  .page-login__security-section {
    padding: 60px 15px;
  }
  .page-login__security-content {
    gap: 30px;
    flex-direction: column;
  }
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-login__security-text {
    text-align: left;
  }
  .page-login__security-text p {
    font-size: 0.95em;
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CTA Section */
  .page-login__cta-section {
    padding: 60px 15px;
  }
  .page-login__cta-title {
    font-size: 2em;
  }
  .page-login__cta-description {
    font-size: 1.1em;
  }
  .page-login__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__cta-buttons .page-login__button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* General image and container responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-login__container,
  .page-login__section,
  .page-login__card,
  .page-login__box { /* Ensure all content containers are responsive */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Specific padding is handled by sections, but this ensures no overflow */
  }
  .page-login {
    font-size: 16px; /* Base font size for mobile */
    line-height: 1.6;
  }
}