/* style/login.css */

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, aligns with shared.css default */
}

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

/* Section common styles */
.page-login__hero-section,
.page-login__why-tp88,
.page-login__guide-section,
.page-login__security-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
}

/* Background colors based on contrast requirements */
.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section (dark or light) */
}

.page-login__section-title a,
.page-login__section-description a {
  color: inherit; /* Inherit color from parent section */
  text-decoration: underline;
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Blend primary color with white */
  color: #333333; /* Dark text for the overall hero section */
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #000000; /* Stronger contrast for H1 */
}

.page-login__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  line-height: 1.8;
}

.page-login__intro-text a {
  color: #000000; /* Darker link for contrast */
  text-decoration: underline;
}

.page-login__form-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  align-items: flex-start; /* Align form and image at the top */
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
}

.page-login__login-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex: 1; /* Allow form to take available space */
  min-width: 350px; /* Minimum width for the form */
  text-align: left;
  position: relative;
  z-index: 1;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333333;
  font-size: 16px;
}

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 14px;
}

.page-login__forgot-password,
.page-login__register-link {
  color: #26A9E0; /* Primary color for links */
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Custom login button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__btn-submit:hover {
  background-color: #d16b00; /* Slightly darker orange on hover */
  transform: translateY(-2px);
}

.page-login__hero-image {
  flex: 1; /* Image takes remaining space */
  min-width: 400px; /* Minimum width for the image */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Feature Grid (Why TP88) */
.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* White text for dark background */
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-login__feature-item img {
  width: 100%;
  height: auto;
  max-width: 300px; /* Constrain image size within card */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__feature-text a {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-login__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-login__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0; /* Primary color for step titles */
}

.page-login__step-text {
  font-size: 16px;
  color: #555555;
}

.page-login__step-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-login__troubleshooting {
  margin-top: 60px;
  background: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  color: #000000;
}

.page-login__troubleshooting-title a {
  color: #000000;
  text-decoration: underline;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__troubleshooting-list li {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555555;
  padding-left: 25px;
  position: relative;
}

.page-login__troubleshooting-list li::before {
  content: "•";
  color: #26A9E0; /* Primary color for list bullets */
  font-weight: bold;
  display: inline-block;
  width: 20px;
  margin-left: -25px;
}

.page-login__troubleshooting-list li strong {
  color: #333333;
}

/* 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: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}