/* style/login.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-register-color: #C30808;
  --button-login-color: #C30808;
  --button-text-color: #FFFF00;
  --background-color-light: #FFFFFF;
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Inherit from body */
  padding-top: var(--header-offset, 120px);
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-color-dark-bg);
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-login__login-card {
  background: rgba(1, 116, 57, 0.9); /* Primary color with transparency */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid var(--secondary-color);
}

.page-login__login-card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--button-text-color); /* Specific color for login/register text */
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

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

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

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--button-login-color); /* Specific login button color */
  color: var(--button-text-color); /* Specific login button text color */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-submit:hover {
  background-color: #e00e0e; /* Slightly darker red */
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: var(--secondary-color);
}

.page-login__register-link {
  color: var(--button-text-color); /* Specific register link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-login__advantages-section, 
.page-login__how-to-login-section, 
.page-login__faq-section, 
.page-login__cta-final-section {
  padding: 80px 0;
  background-color: var(--background-color-light); /* Light background for content sections */
  color: var(--text-color-light-bg);
}

.page-login__advantages-section {
  background-color: #0d0d0d;
  color: var(--text-color-dark-bg);
}

.page-login__how-to-login-section {
  background-color: #1a1a1a;
  color: var(--text-color-dark-bg);
}

.page-login__faq-section {
  background-color: #0d0d0d;
  color: var(--text-color-dark-bg);
}

.page-login__cta-final-section {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  text-align: center;
}

.page-login__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-login__advantages-section .page-login__section-title,
.page-login__how-to-login-section .page-login__section-title,
.page-login__faq-section .page-login__section-title {
  color: var(--secondary-color); /* Light text on dark section backgrounds */
}

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

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

.page-login__advantage-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-login__advantage-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.page-login__advantage-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--button-text-color);
}

.page-login__advantage-text {
  font-size: 1em;
  color: var(--secondary-color);
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-login__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--button-text-color);
}

.page-login__step-text {
  font-size: 1em;
  color: var(--secondary-color);
}

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

.page-login__btn-primary, .page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-primary {
  background-color: var(--button-register-color); /* Specific register/promo button color */
  color: var(--button-text-color); /* Specific button text color */
  border: 2px solid var(--button-register-color);
}

.page-login__btn-primary:hover {
  background-color: #e00e0e;
  border-color: #e00e0e;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--button-text-color);
  border: 2px solid var(--button-text-color);
}

.page-login__btn-secondary:hover {
  background-color: var(--button-text-color);
  color: var(--button-register-color);
  transform: translateY(-2px);
}

.page-login__cta-final-section .page-login__btn-primary {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: var(--primary-color);
}

.page-login__faq-question h3 {
  margin: 0;
  color: inherit;
}

.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 {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--secondary-color);
}

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

.page-login__faq-answer p {
  margin: 0;
  color: var(--secondary-color);
}

/* Mobile Floating Buttons */
.page-login__mobile-floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hidden by default, show on mobile */
  gap: 15px;
  z-index: 1000;
  width: 100%;
  max-width: 350px; /* Adjust max-width for better mobile appearance */
  padding: 0 15px;
  box-sizing: border-box;
}

.page-login__mobile-btn {
  flex: 1;
  padding: 12px 15px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__mobile-btn--login {
  background-color: var(--button-login-color);
  color: var(--button-text-color);
}

.page-login__mobile-btn--login:hover {
  background-color: #e00e0e;
}

.page-login__mobile-btn--register {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-login__mobile-btn--register:hover {
  background-color: #005a2e;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-login__hero-section {
    height: auto;
    min-height: 80vh;
    padding-top: 100px; /* Adjust for mobile header if needed, but var(--header-offset) should handle it */
    padding-bottom: 80px;
  }

  .page-login__hero-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__login-card-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__advantages-section, 
  .page-login__how-to-login-section, 
  .page-login__faq-section, 
.page-login__cta-final-section {
    padding: 60px 0;
  }

  .page-login__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

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

  .page-login__advantages-grid, .page-login__login-steps {
    grid-template-columns: 1fr;
  }

  .page-login__advantage-image {
    max-width: 250px;
  }

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

  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 10px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 15px 20px;
  }

  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
  }

  /* Mobile Floating Buttons specific styles */
  .page-login__mobile-floating-buttons {
    display: flex; /* Show on mobile */
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__login-card {
    padding: 25px 15px;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}