/* style/login.css */
:root {
  --primary-color: #FF6600;
  --secondary-color: #003366;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f0f2f5;
}

.page-login__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-login__section:last-of-type {
  margin-bottom: 0;
}

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

/* 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);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  overflow: hidden;
}

.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;
  position: relative;
  z-index: 1;
  max-width: 800px; /* Limit image width in hero for better composition */
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px; /* Limit content width for readability */
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
}

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

.page-login__login-card {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  margin-top: 30px;
}

.page-login__login-card-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  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, box-shadow 0.3s ease;
}

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

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

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

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

.page-login__checkbox-label {
  color: var(--text-dark);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.page-login__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-login__btn-primary:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 102, 0, 0.3);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--text-dark);
}

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

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

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--background-light);
}

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

.page-login__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-item p {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.95em;
}

.page-login__feature-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-login__feature-item a:hover {
  text-decoration: underline;
}

/* Security Section */
.page-login__security-section {
  background: var(--secondary-color);
  color: var(--text-light);
}

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

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

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

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

.page-login__security-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-login__security-list li strong {
  color: var(--primary-color);
}

.page-login__security-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__security-list li a:hover {
  text-decoration: underline;
}

.page-login__security-text p {
  margin-top: 20px;
  font-size: 1.1em;
}

.page-login__security-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.page-login__security-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: #ffffff;
}

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

.page-login__troubleshooting-item {
  background: var(--background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__troubleshooting-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-login__troubleshooting-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__troubleshooting-item a:hover {
  text-decoration: underline;
}

/* Support Section */
.page-login__support-section {
  background-color: var(--background-light);
}

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

.page-login__support-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.page-login__support-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-login__support-details {
  flex: 1;
}

.page-login__support-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__support-list li {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__support-list li strong {
  color: var(--secondary-color);
}

.page-login__support-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__support-list li a:hover {
  text-decoration: underline;
}

.page-login__support-details p {
  margin-top: 20px;
  font-size: 1.1em;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  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: 20px;
  transition: all 0.3s ease;
}

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

/* FAQ Section */
.page-login__faq-section {
  background-color: #ffffff;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #e9ecef;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none;
}

.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: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #ffffff;
  color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95em;
}

.page-login__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Register Section */
.page-login__cta-register-section {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-register-section .page-login__section-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-login__cta-register-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__cta-register-section .page-login__cta-button {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--text-light);
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-login__cta-register-section .page-login__cta-button:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__cta-image {
  margin-top: 50px;
  text-align: center;
}

.page-login__cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__login-card {
    padding: 25px 30px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content, .page-login__support-content {
    flex-direction: column;
  }
  .page-login__security-image, .page-login__support-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
  .page-login__security-image img, .page-login__support-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img {
    border-radius: 8px;
  }
}