/* style/login.css */

/* Custom Colors */
:root {
  --page-login-bg-color: #08160F;
  --page-login-card-bg: #11271B;
  --page-login-text-main: #F2FFF6;
  --page-login-text-secondary: #A7D9B8;
  --page-login-border-color: #2E7A4E;
  --page-login-glow-color: #57E38D;
  --page-login-gold-color: #F2C14E;
  --page-login-divider-color: #1E3A2A;
  --page-login-deep-green: #0A4B2C;
  --page-login-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-login {
  background-color: var(--page-login-bg-color);
  color: var(--page-login-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--page-login-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--page-login-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px;
  min-height: 700px;
  overflow: hidden;
  text-align: center;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--page-login-text-main);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.page-login__description {
  font-size: 1.2em;
  color: var(--page-login-text-secondary);
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 450px;
  border: 1px solid var(--page-login-border-color);
}

.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: var(--page-login-text-main);
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-login-border-color);
  border-radius: 8px;
  background-color: var(--page-login-deep-green);
  color: var(--page-login-text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--page-login-text-secondary);
  opacity: 0.7;
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.page-login__btn-primary {
  background: var(--page-login-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-login__forgot-password {
  color: var(--page-login-text-secondary);
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__register-prompt {
  color: var(--page-login-text-secondary);
  font-size: 0.95em;
  margin-top: 15px;
}

.page-login__register-link {
  color: var(--page-login-gold-color);
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

/* Sections */
.page-login__benefits-section,
.page-login__guide-section,
.page-login__issues-section,
.page-login__security-section,
.page-login__platform-info,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
}

.page-login__dark-section {
  background-color: var(--page-login-card-bg);
}

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

.page-login__benefit-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--page-login-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 10px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-login__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-login__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--page-login-btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-login__issue-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--page-login-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__issue-title {
  font-size: 1.4em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Security Section */
.page-login__security-features {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}

.page-login__security-item {
  flex: 1 1 300px;
  text-align: center;
  max-width: 350px;
}

.page-login__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--page-login-glow-color));
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-login__security-title {
  font-size: 1.4em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-login__info-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--page-login-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__info-title {
  font-size: 1.4em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-login__faq-item {
  background-color: var(--page-login-card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--page-login-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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.2em;
  font-weight: bold;
  color: var(--page-login-text-main);
  user-select: none;
}

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

.page-login__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-login-glow-color);
}

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

.page-login__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-login-text-secondary);
  font-size: 1em;
  line-height: 1.7;
}

/* CTA Section */
.page-login__cta-section {
  background-color: var(--page-login-deep-green);
  text-align: center;
  padding: 60px 0;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
  flex: 1 1 auto; /* Allow buttons to grow and shrink */
  max-width: 280px; /* Max width for individual buttons */
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #11A84E;
  border: 2px solid #11A84E;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  color: #0A4B2C;
  border-color: #0A4B2C;
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 20px;
  }

  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__issues-grid,
  .page-login__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 10px 0 40px;
    min-height: 600px;
  }

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

  .page-login__description {
    font-size: 1em;
  }

  .page-login__form-wrapper {
    padding: 25px;
  }

  .page-login__form-input {
    padding: 10px 12px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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__form-actions {
    gap: 10px;
  }

  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__issues-section,
  .page-login__security-section,
  .page-login__platform-info,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

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

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

  .page-login__benefit-icon,
  .page-login__security-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Ensure image responsive */
    height: auto !important;
  }
  
  .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,
  .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;
    overflow: hidden !important;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__description {
    font-size: 0.9em;
  }

  .page-login__form-wrapper {
    padding: 20px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

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

  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__issue-title,
  .page-login__security-title,
  .page-login__info-title {
    font-size: 1.2em;
  }
}