/* style/login.css */

/* Base styles for the login page content area */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for clarity, aligns with body default */
}

/* Hero Section - Main visual with title and description */
.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 */
  background-color: #f0f8ff; /* Light background for the hero section */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(24px, 4vw, 42px); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-login__container {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-login__section-title {
  font-size: 28px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-login__section-title--light {
  color: #ffffff; /* For dark background sections */
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__input-group {
  display: flex;
  flex-direction: column;
}

.page-login__label {
  font-size: 16px;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 500;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__label-checkbox {
  color: #555555;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #EA7C07; /* Custom login button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none; /* Make it look like a button */
  box-sizing: border-box; /* Crucial for responsiveness */
}

.page-login__login-button:hover {
  background-color: #d16b06;
  transform: translateY(-1px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  color: #555555;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max width of benefit icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* body padding top is handled by shared.css */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-image img {
    border-radius: 4px;
  }

  .page-login__main-title {
    font-size: clamp(20px, 6vw, 36px);
  }

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

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

  .page-login__container {
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-login__options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__login-button,
  .page-login__register-link {
    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__benefits-section {
    padding: 40px 15px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Image responsiveness */
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__container {
    padding: 20px;
  }
  .page-login__section-title {
    font-size: 22px;
  }
  .page-login__login-button {
    font-size: 16px;
    padding: 12px;
  }
  .page-login__label {
    font-size: 14px;
  }
  .page-login__input {
    font-size: 14px;
  }
  .page-login__forgot-password,
  .page-login__label-checkbox {
    font-size: 13px;
  }
}