/* style/login.css */

/* General styles for the login page */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-login__section-title {
  font-size: 32px;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* HERO Section - Login Form Area */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Ensure sufficient height for content */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  margin-top: 0;
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-login__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  display: block;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.page-login__main-title {
  font-size: 38px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-login__intro-text {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #8B0000; /* Deep red border */
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6); /* Dark input background */
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding and border are included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
  background: #FFD700; /* Gold button */
  color: #1a1a1a; /* Dark text for gold button */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: #e6c200;
  color: #000000;
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-login__btn-secondary:hover {
  background: #FFD700;
  color: #1a1a1a;
}

.page-login__link-forgot-password {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 15px;
  display: block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
  color: #FFD700;
}

.page-login__register-prompt {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.page-login__register-prompt p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
  background: #1a1a1a; /* Slightly lighter dark background for contrast */
  padding: 60px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__security-image {
  flex: 1;
  min-width: 200px;
}

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

.page-login__security-text {
  flex: 2;
}

.page-login__security-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
}

.page-login__security-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
}

.page-login__security-list li::before {
  content: '✓'; /* Checkmark icon */
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Advantages Section */
.page-login__advantages-section {
  background: #0d0d0d; /* Even darker background */
  padding: 60px 0;
}

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

.page-login__advantage-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__advantage-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 215, 0, 0.1);
}

.page-login__advantage-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__advantage-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-login__faq-section {
  background: #1a1a1a;
  padding: 60px 0;
}

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

/* FAQ item styles */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to hold any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Darker background for FAQ answer */
  border-radius: 0 0 5px 5px;
  color: #e0e0e0; /* Light text for answer */
}

/* Question style */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333; /* Dark background for question */
  border: 1px solid #444444;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text for question */
}

.page-login__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-login__faq-question:active {
  background: #555555;
}

/* Question title style */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Gold for FAQ question titles */
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Register CTA Section */
.page-login__register-cta-section {
  background: #0d0d0d;
  padding: 60px 0;
}

.page-login__register-cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 215, 0, 0.1); /* Light gold transparent background */
  border-radius: 12px;
  padding: 40px;
}

.page-login__register-cta-text {
  flex: 1;
}

.page-login__register-cta-text .page-login__section-title {
  text-align: left;
  margin-bottom: 20px;
  color: #FFD700;
  font-size: 30px;
}

.page-login__register-cta-text p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.page-login__register-cta-image {
  flex: 1;
  min-width: 200px;
}

.page-login__register-cta-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- Responsive Styles --- */

/* Tablet responsiveness for larger screens, if needed for minor adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 32px;
  }

  .page-login__intro-text {
    font-size: 17px;
  }

  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
}