/* style/login.css */

:root {
  --profut-red-primary: #C91F17;
  --profut-red-secondary: #E53935;
  --profut-card-bg: #D32F2F;
  --profut-bg-dark: #B71C1C;
  --profut-text-main: #FFF5E1;
  --profut-border-gold: #F2B544;
  --profut-glow: #FFCC66;
  --profut-gold: #F4D34D;
  --profut-deep-red: #7A0E0E;
  --profut-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

/* Body background is #0a0a0a (dark), so main text color should be light */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--profut-text-main); /* Light text for dark background */
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--profut-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-login__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--profut-text-main);
}

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

.page-login__form-group {
  text-align: left;
}

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--profut-text-main);
}

.page-login__input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--profut-border-gold);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--profut-text-main);
  font-size: 1rem;
}

.page-login__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--profut-text-main);
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--profut-border-gold);
  border-radius: 3px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: var(--profut-gold);
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.page-login__forgot-password {
  color: var(--profut-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--profut-glow);
}

.page-login__btn-submit {
  background: var(--profut-button-gradient);
  color: #333333; /* Dark text for light gradient button */
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-login__register-cta {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--profut-text-main);
}

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

.page-login__register-link:hover {
  color: var(--profut-glow);
}

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

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--profut-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-login__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--profut-border-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-login__content-area {
  font-size: 1.05rem;
  color: var(--profut-text-main);
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-login__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-section {
  background-color: var(--profut-deep-red);
}

.page-login__security-section .page-login__section-title {
  color: var(--profut-gold);
}

.page-login__security-section .page-login__content-area {
  color: var(--profut-text-main);
}

.page-login__promotions-section {
  background-color: var(--profut-card-bg);
}

.page-login__promotions-section .page-login__section-title {
  color: var(--profut-gold);
}

.page-login__promotions-section .page-login__content-area {
  color: var(--profut-text-main);
}

.page-login__video-section {
  background-color: #1a1a1a;
  text-align: center;
  padding-top: 10px; /* Small top padding */
}

.page-login__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
}

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

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

.page-login__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: var(--profut-text-main);
}

.page-login__faq-section {
  background-color: #0a0a0a;
}

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

.page-login__faq-item {
  background-color: var(--profut-deep-red);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--profut-border-gold);
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--profut-gold);
  background-color: var(--profut-red-primary);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: var(--profut-red-secondary);
}

.page-login__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-login__faq-toggle {
  margin-left: 15px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--profut-gold);
}

.page-login__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: var(--profut-text-main);
  background-color: var(--profut-deep-red);
  text-align: left;
}

.page-login__cta-register-section {
  background-color: #1a1a1a;
  text-align: center;
}

.page-login__register-content {
  align-items: center;
}

.page-login__btn-register {
  display: inline-block;
  background: var(--profut-button-gradient);
  color: #333333; /* Dark text for light gradient button */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-register:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

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

  .page-login__hero-content {
    padding: 30px 20px;
  }

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

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

  .page-login__input {
    width: calc(100% - 20px) !important;
  }

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

  .page-login__btn-submit,
  .page-login__btn-register {
    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__section {
    padding: 40px 15px;
  }

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

  .page-login__content-area {
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper,
  .page-login__video-wrapper,
  .page-login__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-login__video-section {
    padding-top: 10px !important;
  }

  .page-login__video {
    border-radius: 0;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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