/* style/login.css */

/* Base styles for the page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-login__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__login-form-wrapper {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 40px;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  box-sizing: border-box;
  font-size: 1em;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
}

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

.page-login__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #11A84E;
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__forgot-password {
  color: #22C768; /* Accent Color */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__login-button {
  padding: 14px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__login-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-login__register-cta {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #1E3A2A; /* Divider */
}

.page-login__no-account-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-login__register-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #22C768; /* Accent Color */
  color: #08160F; /* Background - ensuring contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-login__register-button:hover {
  background-color: #11A84E; /* Main Color */
  color: #F2FFF6; /* Text Main - ensuring contrast */
}

.page-login__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  object-fit: cover;
}

/* General Section Styles */
.page-login__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.page-login__advantages-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__faq-section {
  padding: 80px 20px;
}

.page-login__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__advantage-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__advantage-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__advantage-title {
  font-size: 1.5em;
  color: #22C768; /* Accent Color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__advantage-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

.page-login__security-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__security-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

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

.page-login__troubleshooting-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshooting-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__troubleshooting-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__support-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #11A84E; /* Main Color */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__support-button:hover {
  background-color: #22C768; /* Accent Color */
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
}

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

.page-login__faq-qtext {
  flex-grow: 1;
}

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

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

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

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

  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-login__intro-text {
    font-size: 1em;
  }

  .page-login__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-login__login-button,
  .page-login__register-button,
  .page-login__support-button {
    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__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__advantages-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section {
    padding: 40px 15px;
  }

  .page-login__advantage-card,
  .page-login__security-item,
  .page-login__troubleshooting-item {
    padding: 25px;
  }

  .page-login__advantage-icon,
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  
  .page-login__advantages-grid, 
  .page-login__security-features, 
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }
}