/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__hero-cta {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-login__btn-tertiary {
  background-color: transparent;
  color: #f0f0f0;
  border: 2px solid #f0f0f0;
}

.page-login__btn-tertiary:hover {
  background-color: #f0f0f0;
  color: #0a0a0a;
}

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

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  margin: 0 auto;
}

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

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

.page-login__form-label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-login__form-input {
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #bbb;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.page-login__remember-me {
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.page-login__remember-me input {
  margin-right: 8px;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__submit-button {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.page-login__submit-button:hover {
  background-color: #c76707 !important;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.page-login__register-prompt p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__security-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__security-text {
  color: #f0f0f0;
}

.page-login__security-cta {
  margin-top: 40px;
  display: inline-block;
}

/* Mobile App Section */
.page-login__mobile-app-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__mobile-app-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__mobile-app-content {
  flex: 1;
  min-width: 300px;
}

.page-login__mobile-app-content .page-login__section-title,
.page-login__mobile-app-content .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-login__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%2326A9E0" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  background-color: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question:hover {
  background-color: #3a3a3a;
}

.page-login__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: none;
}

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

.page-login__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1em;
}

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

/* Hide default details marker */
.page-login__faq-item summary {
  list-style: none;
}

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

.page-login__faq-cta {
  margin-top: 30px;
  display: block;
  text-align: center;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #ffffff;
}

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

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

  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-login__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }

  .page-login__security-grid {
    grid-template-columns: 1fr;
  }

  .page-login__mobile-app-section .page-login__container {
    flex-direction: column;
  }

  .page-login__mobile-app-content, .page-login__mobile-app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-login__mobile-app-content .page-login__section-title,
  .page-login__mobile-app-content .page-login__section-description {
    text-align: center;
  }

  .page-login__app-features {
    padding-left: 15px;
  }

  .page-login__app-features li {
    background-position: 0 center;
  }
}

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

  .page-login__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }

  .page-login__hero-content {
    padding: 10px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-login__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-login__hero-cta {
    margin: 5px;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-login__form-section, .page-login__security-section, .page-login__mobile-app-section, .page-login__faq-section, .page-login__cta-section {
    padding: 40px 0;
  }

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

  .page-login__section-title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    margin-bottom: 15px;
  }

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

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

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

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

  .page-login__security-item {
    padding: 20px;
  }

  .page-login__security-title {
    font-size: 1.2em;
  }

  .page-login__app-features li {
    font-size: 0.95em;
  }

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

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

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

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

  .page-login__cta-buttons a {
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile responsive images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive containers for images/videos/buttons */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__mobile-app-image-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; /* Ensure no overflow */
  }

  .page-login__video-section { /* Although no video is present, keep for consistency */
    padding-top: 10px !important;
  }

  /* Buttons specific mobile overrides */
  .page-login__cta-button,
  .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;
  }
}

/* Color Contrast Fixes (if needed, based on body background #0a0a0a) */
/* The primary text color is set to #ffffff for dark background. */
/* Card backgrounds are rgba(255, 255, 255, 0.1) which provides good contrast. */
/* Button colors are also chosen for good contrast. */
.page-login__dark-bg {
  color: #ffffff;
  background: #0a0a0a;
}

.page-login__light-bg {
  color: #333333;
  background: #ffffff;
}

/* Specific overrides for button colors from custom palette */
.page-login__submit-button {
  background-color: #EA7C07; /* Login button specific color */
}

.page-login__submit-button:hover {
  background-color: #c76707 !important; /* Darker shade on hover */
}

.page-login__cta-buttons .page-login__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-login__cta-buttons .page-login__btn-primary:hover {
  background-color: #c76707;
  border-color: #c76707;
}