/* style/login.css */

/* Base styles for the login page, ensuring light text on dark background */
.page-login {
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-login__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

.page-login__login-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  max-width: 450px;
  margin: 30px auto 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-login__card-title {
  font-size: 2rem;
  color: #F2C14E; /* Main color */
  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: #FFF6D6; /* Text Main */
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12; /* Border */
  background: rgba(255, 255, 255, 0.05);
  color: #FFF6D6; /* Text Main */
  border-radius: 5px;
  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: #FFD36B; /* Glow */
  box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.2);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-tertiary {
  display: block;
  padding: 14px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff; /* Button text always white */
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow */
}

.page-login__btn-secondary:hover {
  background: #FFD36B; /* Glow */
  color: #111111; /* Card BG */
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #FFD36B; /* Glow */
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* General Section Styles */
.page-login__why-phtaya-section,
.page-login__explore-games-section,
.page-login__promotions-section,
.page-login__app-download-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
  background: #0A0A0A; /* Background */
}

.page-login__section-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  opacity: 0.9;
}

/* Benefits Grid */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__benefit-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills container */
  max-width: 200px; /* Constrain icon size, but ensure min 200px */
  height: auto;
  margin: 0 auto 20px;
  border-radius: 5px; /* Added for image style */
  object-fit: cover;
  min-width: 200px; /* Enforce min size if not a category icon */
  min-height: 200px; /* Enforce min size if not a category icon */
}

.page-login__benefit-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  opacity: 0.8;
}

/* Game Categories Grid */
.page-login__game-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-login__game-category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__game-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: #F2C14E; /* Main color */
}

.page-login__game-category-icon {
  width: 100%; /* Ensure image fills container */
  max-width: 250px; /* Example size for category images */
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__game-category-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__game-category-text {
  font-size: 0.95rem;
  color: #FFF6D6; /* Text Main */
  opacity: 0.8;
  flex-grow: 1; /* Allows text to take available space */
}

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

.page-login__promo-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__promo-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__promo-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  opacity: 0.8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-login__btn-tertiary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  background: #FFD36B; /* Glow */
  color: #111111; /* Card BG */
  border: none;
  transition: background 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-tertiary:hover {
  background: #F2C14E; /* Main color */
  color: #ffffff;
}

.page-login__cta-full-width {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-login__cta-text {
  font-size: 1.2rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  opacity: 0.9;
}

/* App Download Section */
.page-login__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-login__app-text-block {
  flex: 1;
  min-width: 300px;
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px; /* Adjust max-width for the image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-login__app-download-button {
  margin-top: 30px;
}

/* Security Section */
.page-login__security-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__security-feature-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  opacity: 0.8;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}