/* style/login.css */
/* Base styles for the login page, ensuring BEM naming and scope */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Default background from custom colors */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for content separation */
}

/* Variables for custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --light-text-color: #ffffff; /* For light backgrounds */
  --dark-text-color: #333333; /* For light backgrounds */
  --light-bg-color: #ffffff;
}

/* Section styling */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: var(--background-color);
  overflow: hidden; /* Ensure no overflow from images */
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background */
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main-color);
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding in width calculation */
  min-width: 180px; /* Minimum width for buttons */
  text-align: center;
}

.page-login__btn-primary {
  background: var(--button-gradient);
  color: var(--light-text-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

/* Container for main content */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-login__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary-color);
}

.page-login__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-main-color);
}

.page-login__text-secondary {
  color: var(--text-secondary-color);
}

/* Dark background sections */
.page-login__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
  padding: 80px 0;
}

/* Light background sections */
.page-login__light-bg {
  background-color: var(--light-bg-color); /* White background */
  color: var(--dark-text-color); /* Dark text */
  padding: 80px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__sub-title,
.page-login__light-bg .page-login__card-title,
.page-login__light-bg .page-login__benefit-heading,
.page-login__light-bg .page-login__game-title {
  color: var(--dark-text-color);
}

.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__card-text,
.page-login__light-bg .page-login__benefit-text,
.page-login__light-bg .page-login__game-text,
.page-login__light-bg .page-login__faq-qtext,
.page-login__light-bg .page-login__faq-answer p {
  color: var(--dark-text-color);
}

.page-login__light-bg .page-login__link {
  color: var(--primary-color);
}

/* Login Form Section */
.page-login__login-form-section {
  padding-top: 80px;
}

.page-login__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}