/* style/login.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --border-color: #e0e0e0;
}

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

.page-login__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-login__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
  z-index: 2;
}

.page-login__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  margin-top: 30px;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-login__submit-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.page-login__submit-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-login__forgot-password:hover {
  color: var(--secondary-color);
}

.page-login__no-account-text {
  margin-top: 20px;
  color: var(--text-dark);
  font-size: 15px;
}

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

.page-login__register-link:hover {
  color: var(--secondary-color);
}

.page-login__hero-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: right;
  z-index: 1;
}

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

/* Benefits Grid */
.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  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.15);
}

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

.page-login__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__benefit-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Security Section */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-light);
}

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

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__security-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

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

/* FAQ Section */
.page-login__faq-section {
  padding-bottom: 80px;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

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

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
}

.page-login__cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-login__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-login__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__cta-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__cta-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
}

/* General Button Styles */
.page-login__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-login__login-form-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .page-login__hero-image {
    order: -1; /* Image above content on smaller screens */
    text-align: center;
    max-width: 80%;
  }

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

  .page-login__security-text, .page-login__cta-content {
    max-width: 100%;
  }

  .page-login__security-image, .page-login__cta-image {
    max-width: 80%;
  }

  .page-login__security-text .page-login__btn-secondary {
    margin: 20px auto 0 auto;
  }
}

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

  .page-login__section {
    padding: 40px 15px;
  }

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

  .page-login__section-title {
    font-size: 28px;
  }

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

  .page-login__hero-title {
    font-size: 36px;
  }

  .page-login__hero-description {
    font-size: 18px;
  }

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

  .page-login__input {
    padding: 10px 12px;
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section, .page-login__container, .page-login__login-form-wrapper, .page-login__benefits-grid, .page-login__security-content, .page-login__cta-container, .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__submit-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-login__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-login__faq-answer {
    padding: 0 15px;
  }
  
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  .page-login__cta-title {
    font-size: 30px;
  }

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

  .page-login__benefit-item {
    padding: 20px;
  }

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

  .page-login__benefit-icon {
    max-width: 150px;
  }
}