/* style/login.css */
.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 is handled by shared.css */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  min-height: 600px;
  background-color: #002060; /* good888 blue */
  padding-top: var(--header-offset, 120px);
}

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

.page-login__main-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #002060;
  border-color: #FFD700;
}

.page-login__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #002060;
  transform: translateY(-2px);
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-login__login-card {
  background-color: #2a2a2a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #002060;
}

.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: #FFD700;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #002060;
  border-radius: 5px;
  background-color: #3a3a3a;
  color: #ffffff;
  font-size: 1em;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #ffffff;
}

.page-login__forgot-password-link {
  color: #FFD700;
  text-decoration: none;
}

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

.page-login__submit-button {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #FFD700;
  color: #002060;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #ffffff;
}

.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: #002060;
  color: #ffffff;
}

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

.page-login__security-image {
  flex-shrink: 0;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.page-login__security-text h2 {
  color: #FFD700;
  margin-bottom: 20px;
  text-align: left;
}

.page-login__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-login__security-text ul {
  list-style: none;
  padding: 0;
}

.page-login__security-text ul li {
  margin-bottom: 10px;
}

.page-login__security-text ul li a {
  color: #FFD700;
  text-decoration: none;
}

.page-login__security-text ul li a:hover {
  text-decoration: underline;
}

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

.page-login__video-section .page-login__section-title {
  color: #FFD700;
}

.page-login__video-description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #002060;
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title {
  color: #FFD700;
}

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

.page-login__faq-item {
  background-color: #0a2a5a;
  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;
  background-color: #0f3a7a;
  border-bottom: 1px solid #1a4a8a;
}

.page-login__faq-question:hover {
  background-color: #1a4a8a;
}

.page-login__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

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

  .page-login__intro-text {
    font-size: 1.1em;
  }

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

  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-image {
    margin-bottom: 20px;
  }

  .page-login__security-text h2 {
    text-align: center;
  }
}

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

  .page-login__hero-section {
    padding: 60px 0;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button,
  .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__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

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

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__security-image {
    max-width: 100%;
  }

  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
}

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

  .page-login__intro-text {
    font-size: 0.9em;
  }

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

  .page-login__login-card {
    padding: 20px 15px;
  }

  .page-login__form-label {
    font-size: 0.9em;
  }

  .page-login__form-input {
    padding: 10px;
    font-size: 0.9em;
  }

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

  .page-login__forgot-password-link,
  .page-login__register-link {
    font-size: 0.85em;
  }
}

/* Color Contrast Fixes - Ensure light text on dark background */
.page-login__dark-bg {
  color: #ffffff;
}

.page-login__light-bg {
  color: #ffffff; /* For body background #121212, so section background #1a1a1a still needs light text */
}

.page-login__login-card {
  background-color: #2a2a2a; /* Darker than section, still needs light text */
  color: #ffffff;
}

.page-login__faq-item {
  background-color: #0a2a5a;
}

.page-login__faq-question {
  background-color: #0f3a7a;
}

.page-login__faq-question:hover {
  background-color: #1a4a8a;
}

.page-login__faq-title {
  color: #ffffff;
}

.page-login__faq-answer {
  color: #e0e0e0;
}