/* style/login.css */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light background */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 80px;
  text-align: center;
  background-color: #CC0000; /* Main brand color */
  color: #ffffff; /* White text on red background */
  overflow: hidden;
}

.page-login__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 40px auto;
  color: #333333;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
}

.page-login__btn-primary {
  background-color: #CC0000; /* Main brand color */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.page-login__forgot-password {
  color: #CC0000;
  text-decoration: none;
  font-size: 0.9em;
  display: block;
  text-align: right;
  margin-top: -5px;
}

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

.page-login__register-cta {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: center;
}

.page-login__register-cta p {
  margin-bottom: 15px;
  color: #333333;
}

.page-login__register-link {
  color: #CC0000;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__btn-secondary {
  background-color: #333333; /* Secondary brand color */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 10px;
}

.page-login__btn-secondary:hover {
  background-color: #555555;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #CC0000;
  font-weight: bold;
}

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-login__dark-bg {
  background-color: #333333;
  color: #ffffff;
  padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title {
  color: #ffffff;
}

.page-login__dark-bg .page-login__section-intro {
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-grid, .page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__benefit-item, .page-login__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover, .page-login__security-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon, .page-login__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title, .page-login__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #CC0000;
  font-weight: bold;
}

.page-login__benefit-item p, .page-login__security-item p {
  font-size: 1em;
  color: #555555;
}

/* Guide Section */
.page-login__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: #fefefe;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #CC0000;
}

.page-login__step-title {
  font-size: 1.6em;
  color: #333333;
  margin-bottom: 10px;
}

.page-login__step-item p {
  color: #555555;
}

.page-login__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid #555555;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  background-color: #444444;
  color: #ffffff;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  background-color: #222222;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 25px;
}

.page-login__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-login__faq-contact-btn {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Security Section */
.page-login__security-footer {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #555555;
}

/* CTA Section */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 20px;
    max-width: 90%;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 0.95em;
  }
  .page-login__benefits-grid, .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__guide-steps {
    gap: 20px;
  }
  .page-login__step-title {
    font-size: 1.4em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 20px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100% !important;
    max-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 img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__login-form,
  .page-login__register-cta,
  .page-login__benefits-grid,
  .page-login__benefit-item,
  .page-login__guide-steps,
  .page-login__step-item,
  .page-login__faq-list,
  .page-login__faq-item,
  .page-login__security-grid,
  .page-login__security-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-login__hero-section .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__hero-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .page-login__benefit-item,
  .page-login__security-item {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-login__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-wrapper {
    margin: 20px auto;
  }
}