/* style/login.css */

.page-login {
  color: #333333; /* Default text color for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5; /* Light background for the main content area */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-image: url('[GALLERY:bg:1920x1080:18win,login,background,secure_platform,gold_red]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure container takes full width on smaller screens */
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-login__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 40px auto 0;
  color: #333333;
  text-align: left;
}

.page-login__card-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #8B0000; /* Deep red card title */
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700; /* Highlight checkbox with primary color */
}

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

.page-login__forgot-password {
  color: #8B0000; /* Deep red for forgot password link */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  background: #FFD700; /* Primary color for submit button */
  color: #333333; /* Dark text for contrast */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-login__submit-button:hover {
  background-color: #E0B800; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-login__submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

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

.page-login__register-text {
  margin-bottom: 10px;
}

.page-login__register-button {
  display: inline-block;
  padding: 10px 25px;
  background: #8B0000; /* Secondary color for register button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__register-button:hover {
  background-color: #6A0000; /* Slightly darker red on hover */
  transform: translateY(-1px);
}

/* Features Section */
.page-login__features-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 50px;
}

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

.page-login__feature-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; /* Added border-radius as per image style guide */
}

.page-login__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-login__feature-description {
  font-size: 16px;
  color: #555555;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 20px;
  background-color: #FFD700; /* Primary color background */
  text-align: center;
  color: #333333; /* Dark text for contrast */
}

.page-login__cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333333;
}

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

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  max-width: 100%; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__cta-button--primary {
  background: #8B0000; /* Secondary color for primary CTA */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-login__cta-button--primary:hover {
  background: #6A0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
}

.page-login__cta-button--secondary {
  background: #ffffff;
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #8B0000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__cta-button--secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-login__copyright {
  text-align: center;
  padding: 20px;
  background-color: #333333;
  color: #cccccc;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__description {
    font-size: 16px;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__card-title {
    font-size: 24px;
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 30px;
  }
  .page-login__feature-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-login__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-login__login-card {
    padding: 25px;
    max-width: 100%; /* Full width on mobile */
    margin-top: 20px;
    border-radius: 8px;
  }

  .page-login__card-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 6px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__remember-me {
    margin-bottom: 10px;
  }

  .page-login__forgot-password {
    align-self: flex-start;
  }

  .page-login__submit-button,
  .page-login__register-button {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 6px;
    width: 100% !important; /* Ensure full width for buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__section-title,
  .page-login__cta-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-login__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__features-grid {
    grid-template-columns: 1fr; /* Stack features vertically */
    gap: 25px;
  }

  .page-login__feature-icon {
    width: 150px;
    height: 150px;
  }

  .page-login__feature-title {
    font-size: 20px;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack CTA buttons vertically */
    gap: 15px;
  }

  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__copyright {
    padding: 15px;
    font-size: 13px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none !important;
}