/* style/login.css */
/* Custom Colors */
:root {
  --rr99-primary: #11A84E;
  --rr99-secondary: #22C768;
  --rr99-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --rr99-card-bg: #11271B;
  --rr99-background: #08160F;
  --rr99-text-main: #F2FFF6;
  --rr99-text-secondary: #A7D9B8;
  --rr99-border: #2E7A4E;
  --rr99-glow: #57E38D;
  --rr99-gold: #F2C14E;
  --rr99-divider: #1E3A2A;
  --rr99-deep-green: #0A4B2C;
}

.page-login {
  background-color: var(--rr99-background);
  color: var(--rr99-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(28px, 3.5vw, 48px);
  color: var(--rr99-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--rr99-text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-primary {
  background: var(--rr99-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--rr99-glow);
}

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

.page-login__btn-secondary:hover {
  background: var(--rr99-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--rr99-glow);
}

.page-login__card {
  background-color: var(--rr99-card-bg);
  border: 1px solid var(--rr99-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  border-radius: 12px;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-login__hero-title {
  font-size: clamp(32px, 4.5vw, 64px);
  color: var(--rr99-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-login__hero-description {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--rr99-text-secondary);
  margin-bottom: 40px;
}

.page-login__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
}

.page-login__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 16px;
  color: var(--rr99-text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid var(--rr99-border);
  border-radius: 8px;
  background-color: var(--rr99-deep-green);
  color: var(--rr99-text-main);
  font-size: 16px;
}

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

.page-login__form-input:focus {
  outline: none;
  border-color: var(--rr99-primary);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-login__forgot-password-link {
  color: var(--rr99-text-secondary);
  text-decoration: none;
  font-size: 14px;
  text-align: right;
  margin-top: -10px;
}

.page-login__forgot-password-link:hover {
  color: var(--rr99-primary);
  text-decoration: underline;
}

.page-login__form-submit-btn {
  margin-top: 20px;
}

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

.page-login__register-link {
  color: var(--rr99-primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--rr99-deep-green);
}

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

.page-login__benefit-item {
  text-align: center;
  padding: 30px;
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure images are not too small but fit */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 24px;
  color: var(--rr99-text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__benefit-text {
  font-size: 16px;
  color: var(--rr99-text-secondary);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

.page-login__security-content {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-login__security-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.page-login__security-list-item {
  background-color: var(--rr99-card-bg);
  border: 1px solid var(--rr99-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--rr99-text-main);
  position: relative;
  padding-left: 50px;
}

.page-login__security-list-item::before {
  content: '✅';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.page-login__security-note {
  text-align: center;
  font-size: 18px;
  color: var(--rr99-text-secondary);
  margin-top: 40px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: var(--rr99-deep-green);
}

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

.page-login__troubleshooting-item {
  padding: 30px;
  text-align: center;
}

.page-login__troubleshooting-title {
  font-size: 22px;
  color: var(--rr99-text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__troubleshooting-text {
  font-size: 16px;
  color: var(--rr99-text-secondary);
  margin-bottom: 20px;
}

.page-login__troubleshooting-link {
  color: var(--rr99-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: var(--rr99-card-bg);
  border: 1px solid var(--rr99-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;
  font-size: 18px;
  color: var(--rr99-text-main);
  font-weight: 600;
  cursor: pointer;
  background-color: var(--rr99-deep-green);
  border-bottom: 1px solid var(--rr99-divider);
}

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

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

.page-login__faq-question::marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--rr99-gold);
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--rr99-text-secondary);
  line-height: 1.8;
}

/* Explore Section */
.page-login__explore-section {
  padding: 80px 0;
  background-color: var(--rr99-deep-green);
}

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

.page-login__explore-card {
  text-align: center;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-login__explore-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-login__explore-title {
  font-size: 22px;
  color: var(--rr99-text-main);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-login__explore-text {
  font-size: 16px;
  color: var(--rr99-text-secondary);
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Global image responsive styles (already in shared.css but adding for login.css scope) */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-login__hero-section {
    padding-bottom: 40px;
  }

  .page-login__hero-image {
    margin-bottom: 30px;
  }

  .page-login__hero-title {
    font-size: 32px;
  }

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

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

  .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;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

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

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

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-image-wrapper,
  .page-login__security-list {
    min-width: unset;
    width: 100%;
  }

  .page-login__benefits-grid,
  .page-login__troubleshooting-grid,
  .page-login__explore-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__explore-section,
  .page-login__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-login__video-section {
    padding-top: 10px !important;
  }

  .page-login__login-form,
  .page-login__hero-cta-buttons,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}