/* style/login.css */

/* Base Styles & Color Contrast */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-login__dark-bg {
  background-color: #1c1c1c; /* Use body background color for sections */
  color: #ffffff; /* Light text for dark background */
}

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

.page-login__section {
  padding: 60px 0;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand green for titles on light backgrounds, white on dark */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__dark-bg .page-login__section-title {
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit from section for contrast */
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: #1c1c1c; /* Ensure dark background for hero */
  color: #ffffff;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Login Card */
.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  margin: 30px auto 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__login-card-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1em;
}

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

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

.page-login__forgot-password {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
}

/* Custom button colors from requirements */
.page-login__btn-login,
.page-login__btn-primary {
  background-color: #C30808; /* Custom red for login/register */
  color: #ffffff; /* Overriding #FFFF00 for contrast */
}

.page-login__btn-login:hover,
.page-login__btn-primary:hover {
  background-color: #a00606; /* Darker red on hover */
}

.page-login__btn-secondary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-login__btn-secondary:hover {
  background-color: #005f2e; /* Darker green on hover */
}


.page-login__register-text {
  margin-top: 20px;
  color: #ffffff;
  font-size: 0.95em;
  text-align: center;
}

.page-login__register-link {
  color: #017439; /* Brand green for register link */
  text-decoration: none;
  font-weight: bold;
}

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

/* Why Login Section */
.page-login__why-login {
  background-color: #ffffff;
  color: #333333;
}

.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Login Guide Section */
.page-login__login-guide {
  background-color: #1c1c1c;
  color: #ffffff;
}

.page-login__guide-steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 25px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 1em;
  color: #cccccc;
}

.page-login__guide-subsections {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__subsection-title {
  font-size: 1.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__subsection-text {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 30px;
}

.page-login__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__trouble-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-login__trouble-title {
  font-size: 1.5em;
  color: #C30808; /* Red for emphasis on issues */
  margin-bottom: 15px;
}

.page-login__trouble-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

/* Security Section */
.page-login__security {
  background-color: #1c1c1c;
  color: #ffffff;
}

.page-login__security-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__tip-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__tip-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__tip-text {
  font-size: 1em;
  color: #cccccc;
}

/* Video Section */
.page-login__video-section {
  background-color: #1c1c1c;
  color: #ffffff;
  text-align: center;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicate it's clickable */
}

.page-login__cta-buttons {
  margin-top: 30px;
  text-align: center;
}

.page-login__btn-video-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  background-color: #C30808; /* Custom red for CTA */
  color: #ffffff;
}

.page-login__btn-video-cta:hover {
  background-color: #a00606;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  transition: background-color 0.3s ease;
}

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