/* style/login.css */

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: linear-gradient(135deg, #26A9E0, #1a7fb0); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
  background: #EA7C07; /* Custom login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-login__btn-primary:hover {
  background: #d66f06;
  border-color: #d66f06;
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a7fb0;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle grayscale to not distract */
}

/* General section styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Primary brand color for titles */
}

.page-login__section-subtitle {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0;
  text-align: center;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Form section */
.page-login__form-section {
  padding: 60px 0;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Allow options to wrap */
}

.page-login__remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* Adjust for wrapping */
}

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

.page-login__checkbox-label {
  color: #555555;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px; /* Adjust for wrapping */
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: #EA7C07; /* Custom login button color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-login__submit-button:hover {
  background: #d66f06;
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555555;
}

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

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

/* Benefits section */
.page-login__benefits-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark blue */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}