/* style/login.css */

/* Core Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per instructions */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative; /* Ensure content is below image, not overlapping */
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-login__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-login__form-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
  flex-wrap: wrap;
}

.page-login__form-wrapper {
  background-color: #D32F2F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__form-title {
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  background-color: #B71C1C;
  color: #FFF5E1;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: rgba(255, 245, 225, 0.7);
}

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-login__form-actions {
  text-align: center;
  margin-top: 20px;
}

.page-login__link-forgot,
.page-login__link-register {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.page-login__link-forgot:hover,
.page-login__link-register:hover {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

.page-login__form-actions p {
  margin-top: 15px;
  font-size: 0.95em;
}

.page-login__form-image {
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-login__benefits-section {
  background-color: #C91F17; /* Main Color */
  padding: 60px 20px;
  text-align: center;
  color: #FFF5E1;
}

.page-login__benefits-title {
  color: #F4D34D; /* Gold */
  margin-bottom: 50px;
  font-size: 2.5em;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefit-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__benefit-heading {
  color: #FFD86A; /* Button Gradient start for heading */
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #FFF5E1;
}

.page-login__content-text {
  max-width: 1200px;
  margin: 30px auto 0 auto;
  text-align: left;
  padding: 0 20px;
  font-size: 1.05em;
}

.page-login__security-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1;
  flex-wrap: wrap-reverse;
}

.page-login__security-content {
  max-width: 600px;
  width: 100%;
}

.page-login__security-title {
  color: #F4D34D; /* Gold */
  margin-bottom: 25px;
  font-size: 2.2em;
}

.page-login__security-text {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-login__security-image {
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-login__faq-section {
  padding: 60px 20px;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
  text-align: center;
}

.page-login__faq-title {
  color: #F4D34D; /* Gold */
  margin-bottom: 40px;
  font-size: 2.5em;
}

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

.page-login__faq-item {
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #C91F17; /* Main Color */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFD86A; /* Button Gradient start for question */
  list-style: none;
}

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

.page-login__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1em;
  color: #FFF5E1;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__cta-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  background-color: #B71C1C; /* Fallback background */
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Darken image slightly for text readability */
}

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

.page-login__cta-title {
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  font-size: 2.8em;
}

.page-login__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFF5E1;
}

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

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

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Button Gradient start for contrast */
  border: 2px solid #FFD86A; /* Button Gradient start for border */
}

.page-login__btn-secondary:hover {
  background-color: rgba(255, 216, 106, 0.1);
  color: #E6B800;
  border-color: #E6B800;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2.5rem, 4.5vw, 3rem);
  }

  .page-login__form-section {
    flex-direction: column;
  }

  .page-login__form-image {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
  }

  .page-login__hero-content,
  .page-login__form-wrapper,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

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

  .page-login__form-image,
  .page-login__security-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-login__benefits-title,
  .page-login__security-title,
  .page-login__faq-title,
  .page-login__cta-title {
    font-size: 2em;
  }

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

  .page-login__security-section {
    flex-direction: column-reverse;
  }

  .page-login__cta-content {
    padding: 30px 15px;
  }

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

  .page-login__cta-description {
    font-size: 1.1em;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive enforcement */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__form-wrapper,
  .page-login__benefits-grid,
  .page-login__benefit-item,
  .page-login__security-content,
  .page-login__faq-list,
  .page-login__faq-item,
  .page-login__cta-content,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-login__hero-section {
    padding-top: 10px !important;
  }
}