/* style/login.css */

/* Core Styles for .page-login */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* #FFF6D6 */
  background-color: var(--bg-color); /* #0A0A0A */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Custom CSS Variables from Brand Colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg-color: #111111;
  --bg-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --header-offset: 122px; /* Default from shared, not used for padding-top here directly */
  /* Placeholder for RGB values for rgba() usage, will be calculated by the system */
  --primary-color-rgb: 242, 193, 78;
  --secondary-color-rgb: 255, 211, 107;
  --text-main-color-rgb: 255, 246, 214;
  --card-bg-color-rgb: 17, 17, 17;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
  background-color: var(--bg-color);
  z-index: 1;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, not fixed large */
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__main-description {
  font-size: 1.2rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
  background-color: var(--card-bg-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  margin: 30px auto 0;
  position: relative; /* For background image */
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.page-login__form-title {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main-color);
  font-weight: bold;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main-color);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

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

.page-login__remember-me {
  color: var(--text-main-color);
  display: flex;
  align-items: center;
}

.page-login__remember-me input {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Buttons */
.page-login__login-button,
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__login-button,
.page-login__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
  width: 100%; /* Full width for login button */
}

.page-login__login-button:hover,
.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.5);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: var(--text-main-color);
  font-size: 1rem;
}

.page-login__register-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__promo-access {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: rgba(var(--text-main-color-rgb), 0.8);
}


/* General Section Styles */
.page-login__section {
  padding: 80px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

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

.page-login__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-login__feature-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.page-login__feature-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-description {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Make sure description takes available space */
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Constrain image height in card */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below */
}

.page-login__btn-secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-top: 15px; /* Space from description or image */
}

.page-login__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Mobile App Section */
.page-login__mobile-app {
  background-color: var(--card-bg-color);
  padding: 80px 20px;
}

.page-login__mobile-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  text-align: left;
}

.page-login__mobile-content {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  margin-right: 40px;
}

.page-login__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-login__mobile-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__mobile-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__mobile-features li {
  color: var(--text-main-color);
  margin-bottom: 10px;
  font-size: 1.05rem;
  position: relative;
  padding-left: 25px;
}

.page-login__mobile-features li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__app-info {
  font-size: 0.9rem;
  color: rgba(var(--text-main-color-rgb), 0.7);
  margin-top: 20px;
}

/* Account Support Section */
.page-login__account-support {
  background-color: var(--bg-color);
}

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

.page-login__support-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-login__support-card-title {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__support-card-text {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-login__support-text {
  font-size: 1rem;
  color: rgba(var(--text-main-color-rgb), 0.8);
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming {
  background-color: var(--card-bg-color);
  padding: 80px 20px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--bg-color);
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-login__faq-item {
  background-color: var(--card-bg-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.page-login__faq-question h3 {
  margin: 0;
  color: var(--text-main-color);
  font-size: 1.15rem;
  font-weight: 600;
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* For '-' symbol */
  color: var(--secondary-color);
}