/* style/login.css */

/* Base Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for sections */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Ensure contrast on dark backgrounds */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-login__hero-section {
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  background-color: #0d0d0d; /* Slightly darker for hero */
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.page-login__hero-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom font color for login/register */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin-top: 30px;
}

.page-login__form-title {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439; /* Brand color border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #cccccc;
}

.page-login__input:focus {
  outline: none;
  border-color: #FFFF00; /* Highlight with custom font color on focus */
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

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

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login font color */
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__link-forgot {
  color: #017439; /* Brand color for links */
  text-decoration: none;
  text-align: center;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__link-forgot:hover {
  color: #FFFF00; /* Highlight with custom font color on hover */
  text-decoration: underline;
}

.page-login__hero-image-container {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

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

.page-login__benefit-title {
  font-size: 1.6em;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-login__security-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__security-title {
  font-size: 1.5em;
  color: #017439; /* Brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

.page-login__cta-text {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-login__btn-register {
  display: inline-block;
  padding: 15px 35px;
  background-color: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register font color */
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* App Section */
.page-login__app-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background */
  color: #ffffff;
}

.page-login__app-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
}

.page-login__app-content {
  flex: 1;
  min-width: 300px;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-login__btn-download {
  display: inline-block;
  padding: 15px 35px;
  background-color: #017439; /* Brand color */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-download:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-login__app-image-container {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Custom font color */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-login__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-login__faq-answer a:hover {
  color: #FFFF00;
}

/* Hide default details marker */
.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-login__faq-item summary::marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-image-container {
    order: -1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    margin: 30px auto 0 auto;
  }
  .page-login__app-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-image-container {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__subtitle {
    font-size: 1em;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid, .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__app-features li {
    font-size: 0.95em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image, video, button adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image-container,
  .page-login__app-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-download,
  .page-login__link-forgot {
    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__actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-login__form-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__benefit-title, .page-login__security-title {
    font-size: 1.3em;
  }
  .page-login__cta-text {
    font-size: 1.1em;
  }
  .page-login__btn-login, .page-login__btn-register, .page-login__btn-download {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-login__faq-answer {
    font-size: 0.9em;
    padding: 12px 15px;
  }
}