/* style/login.css */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Main text color for dark background */
  background-color: var(--background-color); /* Body background from custom colors */
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 245, 225, 0.9);
  line-height: 1.6;
}

.page-login__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* 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: 10px; /* Small top padding, main offset from body */
  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;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-login__hero-content p {
  font-size: 1.2em;
  color: rgba(255, 245, 225, 0.95);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-login__btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
  text-align: center;
}

.page-login__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color); /* Button text always white/light */
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-login__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Login Form Section */
.page-login__login-form-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-login__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 40px auto;
}

.page-login__form-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  flex: 1;
  min-width: 300px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  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(var(--primary-color-rgb), 0.2);
}

.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: #555555;
}

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

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

.page-login__btn--full-width {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2em;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555555;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-login__benefit-card {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-login__benefit-card p {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 245, 225, 0.9);
}

.page-login__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-login__security-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-login__feature-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-login__feature-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__feature-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

.page-login__feature-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* How-to Section */
.page-login__how-to-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-login__step-card {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-login__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__step-card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-login__step-card p {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 245, 225, 0.9);
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__troubleshooting-list li {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  color: #333333;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-list li strong {
  color: var(--primary-color);
  font-size: 1.1em;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-login__choice-item {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-login__choice-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__choice-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-login__choice-item p {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 245, 225, 0.9);
}

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  line-height: 1.6;
}

/* Final CTA Section */
.page-login__cta-section {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content h1 {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
  .page-login__benefits-grid, .page-login__security-features, .page-login__steps-grid, .page-login__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 20px 15px !important; /* Mobile padding for containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-image img {
    border-radius: 4px;
  }

  .page-login__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-login__hero-content p {
    font-size: 1em;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    min-width: unset;
  }

  .page-login__form-wrapper {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-login__form-image {
    max-width: 100%;
    height: auto;
  }

  .page-login__benefit-card, .page-login__feature-item, .page-login__step-card, .page-login__choice-item {
    padding: 20px;
  }
  .page-login__benefit-card h3, .page-login__feature-item h3, .page-login__step-card h3, .page-login__choice-item h3 {
    font-size: 1.3em;
  }

  .page-login__troubleshooting-list li {
    padding: 15px;
  }
  .page-login__troubleshooting-list li strong {
    font-size: 1em;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 15px;
  }
  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-login__section, .page-login__card, .page-login__container, .page-login__form-wrapper, .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__hero-content h1 {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-login__btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-login__form-wrapper {
    padding: 15px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
  .page-login__benefit-card h3, .page-login__feature-item h3, .page-login__step-card h3, .page-login__choice-item h3 {
    font-size: 1.2em;
  }
}