/* style/login.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #222;
  --bg-light: #f4f4f4;
  --border-color: #e0e0e0;
  --card-bg: rgba(255, 255, 255, 0.1);
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark); /* Inherited from shared.css, but explicitly for context */
  padding-top: 120px; /* Adjust for fixed header */
}

.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a30000 100%);
  color: var(--text-light);
  overflow: hidden;
}

.page-login__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-login__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-login__btn-primary:hover {
  background: darken(var(--primary-color), 10%); /* Placeholder for actual darken function */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-container {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

.page-login__form-group {
  margin-bottom: 25px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-light);
  font-size: 1.05em;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #fff;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__submit-button:hover {
  background: darken(var(--primary-color), 10%); /* Placeholder for actual darken function */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__register-text {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: var(--text-light);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #fff;
}

.page-login__benefits-section {
  padding: 80px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}

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

.page-login__benefits-title {
  font-size: 2.8em;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-login__benefit-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__benefit-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-login__benefit-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__benefit-description {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__faq-section {
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-login__faq-main-title {
  font-size: 2.8em;
  margin-bottom: 50px;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-login__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--text-dark);
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(45deg); /* Change to X */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.85);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-login__app-download-section {
  padding: 80px 20px;
  background: linear-gradient(45deg, var(--primary-color) 0%, #a30000 100%);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__app-download-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-login__app-content {
  flex: 1 1 500px;
  text-align: left;
}

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

.page-login__app-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__app-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--text-dark);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-login__app-button:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__app-image-wrapper {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__app-title {
    font-size: 2.5em;
  }
  .page-login__app-content {
    text-align: center;
  }
  .page-login__app-image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__faq-section,
  .page-login__app-download-section {
    padding: 40px 15px !important;
  }

  .page-login__hero-container,
  .page-login__form-container,
  .page-login__benefits-container,
  .page-login__faq-container,
  .page-login__app-download-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__submit-button {
    font-size: 1.1em;
  }

  .page-login__benefits-title,
  .page-login__faq-main-title,
  .page-login__app-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-login__benefit-icon {
    width: 100px;
    height: 100px;
  }

  .page-login__benefit-heading {
    font-size: 1.3em;
  }

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

  .page-login__faq-question h3 {
    font-size: 1em;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }

  .page-login__app-content {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-login__app-image-wrapper {
    flex: 1 1 100%;
    order: -1;
  }

  .page-login__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-login__app-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1.1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

/* Darken function placeholder for SASS/LESS equivalent */
/* This would typically be handled by a preprocessor or custom JS */
/* For pure CSS, you'd replace 'darken(var(--primary-color), 10%)' with a specific darker color */
/* Example: var(--primary-color) is #FFD700, a darker shade could be #E0C000 */
.page-login__btn-primary:hover {
  background: #E0C000;
}
.page-login__submit-button:hover {
  background: #E0C000;
}

/* Contrast Fixes (if needed, but design aims for good contrast initially) */
.page-login__dark-bg {
  color: var(--text-light);
}
.page-login__card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}
.page-login__dark-section {
  background: var(--secondary-color);
  color: var(--text-light);
}