/* style/login.css */
/* Custom Colors: */
/* Background: #08160F */
/* Card BG: #11271B */
/* Text Main: #F2FFF6 */
/* Text Secondary: #A7D9B8 */
/* Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
/* Border: #2E7A4E */
/* Glow: #57E38D */
/* Gold: #F2C14E */
/* Divider: #1E3A2A */
/* Deep Green: #0A4B2C */

.page-login {
  background-color: var(--background, #08160F); /* Fallback to custom background if --background not set */
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding to the bottom of the main content */
}

.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, body handles --header-offset */
  background-color: #08160F; /* Ensure hero section has the dark background */
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-login__form {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 30px auto 0;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
}

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

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

.page-login__form-button,
.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  border: 2px solid #2AD16F; /* Button border from gradient start color */
  color: #2AD16F; /* Use a color from the button gradient for contrast */
}

.page-login__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-login__forgot-password {
  display: block;
  margin-top: 15px;
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Glow */
}

.page-login__section {
  padding: 50px 20px;
  background-color: #08160F; /* Background */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-login__text-block {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__feature-card,
.page-login__step-card,
.page-login__security-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover,
.page-login__step-card:hover,
.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__feature-title,
.page-login__step-title,
.page-login__security-title,
.page-login__troubleshooting-item-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-card p,
.page-login__step-card p,
.page-login__security-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

.page-login__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-login__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__troubleshooting-list li {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__troubleshooting-list li p {
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
  margin-top: 10px;
  margin-bottom: 0;
}

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

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-login__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.7;
}

.page-login__faq-answer p {
  margin-bottom: 0;
  text-align: left;
  color: #A7D9B8; /* Text Secondary */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 40px 15px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-login__hero-content {
    padding: 0 15px;
  }
  .page-login__form {
    max-width: 100%;
    padding: 25px;
  }
  .page-login__form-input {
    width: calc(100% - 20px);
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__form-button,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__section {
    padding: 30px 15px;
  }
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__text-block {
    text-align: left;
  }
  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__troubleshooting-list li {
    padding: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
  }
  .page-login img {
    max-width: 100% !important;
    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;
  }
}