/* style/login.css */

/* Root variables for colors based on the provided palette */
:root {
  --winph-primary: #F2C14E;
  --winph-secondary: #FFD36B;
  --winph-card-bg: #111111;
  --winph-background: #0A0A0A;
  --winph-text-main: #FFF6D6;
  --winph-border: #3A2A12;
  --winph-glow: #FFD36B;
  --winph-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);

  /* Header offset, assuming it's defined in shared.css for body padding */
  /* This value is a fallback and should ideally be controlled by shared.css's --header-offset variable */
  --header-offset: 120px; 
}

/* Base styles for the login page content */
.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--winph-text-main); /* Main text color for dark background */
  background-color: var(--winph-background); /* Main background color */
  line-height: 1.6;
}

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

/* Section styling */
.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__dark-section {
  background-color: var(--winph-card-bg);
}

.page-login__section-title {
  font-size: 2.8em;
  color: var(--winph-primary);
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--winph-text-main);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* --- HERO Section --- */
.page-login__hero-section {
  background: var(--winph-background);
  padding-top: var(--header-offset, 120px); /* Desktop padding-top for fixed header */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-login__hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-login__hero-content {
  flex: 1 1 500px;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  color: var(--winph-primary);
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-login__hero-description {
  font-size: 1.2em;
  color: var(--winph-text-main);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-login__login-card {
  flex: 0 1 400px;
  background-color: var(--winph-card-bg);
  border: 1px solid var(--winph-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  box-sizing: border-box;
}

.page-login__card-title {
  font-size: 2em;
  color: var(--winph-primary);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--winph-text-main);
  font-size: 1em;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: #222222;
  border: 1px solid var(--winph-border);
  border-radius: 8px;
  color: var(--winph-text-main);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--winph-primary);
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--winph-border);
  border-radius: 4px;
  background-color: #222222;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__checkbox:checked {
  background-color: var(--winph-primary);
  border-color: var(--winph-primary);
}

.page-login__checkbox:checked::before {
  content: '✔';
  font-size: 14px;
  color: #111111; /* Dark text for bright checkbox */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-login__checkbox-label {
  color: var(--winph-text-main);
  cursor: pointer;
}

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

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

.page-login__submit-button {
  background: var(--winph-btn-gradient);
  color: #111111; /* Dark text for bright button */
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-login__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-login__register-prompt {
  color: var(--winph-text-main);
  margin-top: 25px;
  font-size: 0.95em;
}

.page-login__register-link {
  color: var(--winph-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* --- General Card Styling --- */
.page-login__card {
  background-color: var(--winph-card-bg);
  border: 1px solid var(--winph-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--winph-text-main);
}

/* --- Buttons --- */
.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: var(--winph-btn-gradient);
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--winph-primary);
  border: 2px solid var(--winph-primary);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-login__btn-secondary:hover {
  background-color: var(--winph-primary);
  color: #111111; /* Dark text for bright button */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-login__text-link {
  color: var(--winph-primary);
  text-decoration: underline;
  font-weight: bold;
}

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

.page-login__feature-item {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: 150px; /* Minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--winph-text-main);
}

/* --- Games Showcase Section --- */
.page-login__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.page-login__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__category-card:hover {
  transform: translateY(-5px);
  background-color: #1a1a1a;
}

.page-login__category-icon {
  width: 30px; /* Allowed small size for category icons */
  height: 30px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

.page-login__category-title {
  font-size: 1.1em;
  color: var(--winph-primary);
  font-weight: bold;
}

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

.page-login__promo-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.page-login__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 20px;
}

.page-login__promo-title {
  font-size: 1.6em;
  color: var(--winph-primary);
  margin: 0 25px 10px 25px;
  font-weight: bold;
}

.page-login__promo-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--winph-text-main);
  margin: 0 25px 25px 25px;
}

/* --- App Section --- */
.page-login__app-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.page-login__app-content {
  flex: 1 1 500px;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__app-image {
  flex: 0 1 400px;
  width: 400px; /* Fixed width for desktop, will be responsive for mobile */
  height: 550px;
  object-fit: contain;
}

.page-login__app-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

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

.page-login__security-item {
  padding: 40px;
  text-align: left;
}

.page-login__security-title {
  font-size: 1.5em;
  color: var(--winph-secondary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--winph-text-main);
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--winph-border);
}

.page-login__faq-question:hover {
  background-color: #222222;
}

.page-login__faq-q-title {
  font-size: 1.2em;
  color: var(--winph-primary);
  margin: 0;
  font-weight: bold;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  color: var(--winph-secondary);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--winph-text-main);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-login__faq-a-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Contact Section --- */
.page-login__contact-info {
  margin-top: 40px;
}

.page-login__contact-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--winph-text-main);
}

.page-login__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 600px;
  text-align: left;
}

.page-login__contact-list li {
  background-color: #1a1a1a;
  border: 1px solid var(--winph-border);
  border-radius: 8px;
  padding: 15px 25px;
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--winph-text-main);
}

.page-login__contact-list li:last-child {
  margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-container {
    flex-direction: column;
    align-items: center;
  }

  .page-login__hero-content,
  .page-login__login-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 500px;
    padding: 0 15px;
  }

  .page-login__hero-content {
    text-align: center;
    padding-bottom: 0;
  }
  
  .page-login__app-container {
    flex-direction: column-reverse; /* App content above image on smaller screens */
  }

  .page-login__app-content {
    text-align: center;
  }

  .page-login__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .page-login__app-download-buttons {
    justify-content: center;
  }

  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile padding-top */
    padding-bottom: 40px;
  }

  .page-login__hero-image {
    max-height: 400px;
  }

  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
}