/* style/login.css */

/* Base styling for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333); /* Default text color from palette */
  background-color: var(--bg-color, #F5F7FA); /* Default background from palette */
}

/* Hero Section - Main login area */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-login__hero-content {
  width: 100%;
  max-width: 600px; /* Constrain content width */
  margin: 0 auto;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff; /* White text for dark background */
}

.page-login__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-login__login-form-wrapper {
  background: var(--card-bg, #FFFFFF); /* Card background for form */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #333333); /* Dark text for light form background */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main, #333333);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
  color: #ffffff; /* White text for button */
  border: none;
  transition: background 0.3s ease;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
}

.page-login__form-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.page-login__link {
  color: #E53935; /* Brand primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 20px;
  background-color: var(--bg-color, #F5F7FA); /* Light background */
  color: var(--text-main, #333333); /* Dark text */
  text-align: center;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__section-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--text-main, #333333);
}

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

.page-login__benefit-item {
  background: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-main, #333333);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-login__benefit-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #333333);
}

.page-login__benefit-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-login__security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-text {
  text-align: left;
}

.page-login__security-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-login__security-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__security-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700; /* Gold checkmark for visibility */
  font-weight: bold;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  background: var(--card-bg, #FFFFFF); /* White background */
  color: #E53935; /* Brand primary color for text */
  border: 2px solid #E53935; /* Brand primary color for border */
  transition: all 0.3s ease;
}

.page-login__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 20px;
  background-color: var(--bg-color, #F5F7FA); /* Light background */
  color: var(--text-main, #333333); /* Dark text */
  text-align: center;
}

.page-login__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.page-login__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  background: transparent;
  color: #E53935;
  border: 2px solid #E53935;
  transition: all 0.3s ease;
}

.page-login__btn-tertiary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-login__app-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-login__security-content {
    flex-direction: row;
    text-align: left;
    gap: 50px;
  }
  .page-login__security-image {
    flex-shrink: 0;
  }
  .page-login__security-text {
    flex-grow: 1;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__subtitle {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__form-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

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

  .page-login__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

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

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__cta-section,
  .page-login__login-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-tertiary,
  .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: 10px;
  }
}

/* Color Contrast Enforcement */
.page-login__dark-bg {
  color: #ffffff;
}

.page-login__light-bg {
  color: var(--text-main, #333333);
}

/* Specific elements for contrast */
.page-login__login-form-wrapper {
  color: var(--text-main, #333333);
}

.page-login__form-label,
.page-login__form-input::placeholder {
  color: var(--text-main, #333333);
}

.page-login__form-input {
  color: var(--text-main, #333333);
}

.page-login__benefit-item {
  color: var(--text-main, #333333);
}

.page-login__benefit-title {
  color: var(--text-main, #333333);
}

.page-login__section-title {
  color: var(--text-main, #333333);
}

/* Override for dark background sections */
.page-login__hero-section .page-login__section-title,
.page-login__hero-section .page-login__subtitle,
.page-login__security-section .page-login__section-title,
.page-login__security-section p,
.page-login__security-section li {
  color: #ffffff;
}

/* No CSS filters allowed for images */
.page-login img {
  filter: none;
}