/* style/login.css */

/* Custom properties for colors */
:root {
  --primary-color: #26A9E0; /* Main brand color */
  --secondary-color: #FFFFFF; /* Auxiliary color, used for backgrounds */
  --login-button-color: #EA7C07; /* Custom color for login button */
  --login-button-hover-color: #D56B00; /* Darker shade for hover */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --border-color: #e0e0e0; /* Light border color */
}

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches body background */
}

/* Hero Section */
.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: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #87CEEB); /* Gradient background for visual appeal */
  color: var(--text-light); /* Light text on dark/gradient background */
}

.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%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  background: var(--secondary-color); /* White background for form area */
  color: var(--text-dark); /* Dark text on white background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: -80px; /* Overlap with the image for a modern look */
}

.page-login__main-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-login__form {
  margin-top: 30px;
  text-align: left;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-login__login-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Custom login button color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  text-align: center;
}

.page-login__login-button:hover {
  background: var(--login-button-hover-color); /* Darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 1em;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* General Section Styles */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-dark);
}

/* Benefits Section */
.page-login__benefits-section {
  background: var(--primary-color); /* Darker background for contrast */
  color: var(--text-light); /* Light text on primary color background */
  padding: 80px 0;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-intro {
  color: var(--text-light);
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on primary background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__benefit-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Security Section */
.page-login__security-section {
  background: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text on white background */
  padding: 80px 0;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-intro {
  color: var(--primary-color);
}

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

.page-login__security-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__security-item img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__security-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__security-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-login__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  background: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
  padding: 80px 0;
}

.page-login__troubleshoot-section .page-login__section-title,
.page-login__troubleshoot-section .page-login__section-intro {
  color: var(--text-light);
}

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

.page-login__troubleshoot-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on primary background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__troubleshoot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshoot-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__troubleshoot-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__troubleshoot-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Register CTA Section */
.page-login__register-cta-section {
  background: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
  padding: 80px 0;
  text-align: center;
}

.page-login__register-cta-section .page-login__section-title {
  color: var(--primary-color);
}

.page-login__register-cta-section .page-login__section-intro {
  color: var(--text-dark);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 300px;
  width: 100%;
}

.page-login__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-login__small-text {
  margin-top: 20px;
  font-size: 0.9em;
  color: #666;
}

/* FAQ Section */
.page-login__faq-section {
  background: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
  padding: 80px 0;
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-intro {
  color: var(--text-light);
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  color: var(--text-dark); /* Dark text on light background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-question {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}