/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Main text color for dark background */
  background-color: var(--site-bg, #0A0A0A); /* Inherited from shared.css, ensuring dark background */
  line-height: 1.6;
}

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

/* Header spacing for fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop padding */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.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 to ensure text contrast */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-login__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
  max-width: 700px;
}

.page-login__login-card {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-login__login-card-title {
  font-size: 2rem;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main, #FFF6D6);
  font-size: 1rem;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 5px;
  background-color: #0A0A0A;
  color: var(--text-main, #FFF6D6);
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 246, 214, 0.6);
}

.page-login__form-input:focus {
  outline: none;
  border-color: var(--glow-color, #FFD36B);
  box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--main-color, #F2C14E); /* Highlight checkbox with brand color */
}

.page-login__checkbox-label {
  color: var(--text-main, #FFF6D6);
  font-size: 0.9rem;
}

.page-login__forgot-password {
  color: var(--main-color, #F2C14E);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--glow-color, #FFD36B);
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Dark text for light button gradient */
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

.page-login__register-text {
  text-align: center;
  color: var(--text-main, #FFF6D6);
  margin-top: 20px;
  font-size: 0.95rem;
}

.page-login__register-link {
  color: var(--main-color, #F2C14E);
  text-decoration: none;
  font-weight: 600;
}

.page-login__register-link:hover {
  color: var(--glow-color, #FFD36B);
  text-decoration: underline;
}

/* General Section Styles */
.page-login__info-section,
.page-login__steps-section,
.page-login__troubleshooting-section,
.page-login__responsible-gaming-section,
.page-login__faq-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0A0A0A);
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.page-login__section-description {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(255, 246, 214, 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Feature Grid */
.page-login__feature-grid,
.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-login__card {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6); /* Text on cards */
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color, #FFD36B);
}

.page-login__feature-icon {
  width: 100%; /* Make feature icons fill card width */
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__feature-title,
.page-login__step-title,
.page-login__troubleshooting-heading,
.page-login__faq-heading {
  font-size: 1.5rem;
  color: var(--main-color, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-text,
.page-login__step-text,
.page-login__troubleshooting-text {
  font-size: 1rem;
  color: rgba(255, 246, 214, 0.7);
}

/* CTA Section */
.page-login__cta-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: rgba(17, 17, 17, 0.7);
  border-radius: 10px;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-login__cta-text {
  font-size: 1.3rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 25px;
  font-weight: 500;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Max width for button group */
  margin: 0 auto;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 25px;
  background: transparent;
  color: var(--main-color, #F2C14E);
  border: 2px solid var(--main-color, #F2C14E);
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: #000000; /* Dark text on hover */
  box-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

/* Steps Section */
.page-login__step-card {
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-login__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color, #F2C14E);
  color: #000000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--glow-color, #FFD36B);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

/* Troubleshooting Section */
.page-login__troubleshooting-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__troubleshooting-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #FFF6D6);
}

.page-login__support-btn {
  margin-top: 20px;
}