/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color from custom palette */
  background-color: var(--background, #0A0A0A); /* Default background color from custom palette */
  line-height: 1.6;
  padding-bottom: 60px; /* Space for footer */
}

/* Header offset for fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Placeholder gradient for hero section background */
  color: #000000; /* Text on hero should be dark for contrast with gradient */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: none !important; /* Ensure no filters are used on images */
}

.page-login__hero-content {
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white for content on hero */
  color: #333333; /* Dark text on this light background */
  border-radius: 12px;
  margin-top: -80px; /* Pull content up slightly to visually overlap, but not covering the image DOM */
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-login__hero-content .page-login__main-title,
.page-login__hero-content .page-login__hero-description {
  color: #000000; /* Ensure dark text on light background */
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #000000; /* Dark text for contrast */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Dark text for contrast */
}

.page-login__section {
  padding: 60px 0;
}

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

.page-login__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #FFF6D6);
}

.page-login__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-main, #FFF6D6);
}

.page-login__text-block .highlight {
  color: var(--main-color, #F2C14E);
  font-weight: bold;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping by default for buttons */
  word-wrap: normal;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for contrast on light gradient button */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--main-color, #F2C14E);
  border: 2px solid var(--main-color, #F2C14E);
}

.page-login__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: #0A0A0A; /* Dark text for contrast on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

.page-login__btn-text {
  background: transparent;
  color: var(--accent-color, #FFD36B);
  border: none;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: underline;
}

.page-login__btn-text:hover {
  color: var(--main-color, #F2C14E);
}

.page-login__inline-link {
  color: var(--accent-color, #FFD36B);
  text-decoration: none;
  font-weight: bold;
}

.page-login__inline-link:hover {
  text-decoration: underline;
  color: var(--main-color, #F2C14E);
}

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

.page-login__feature-item,
.page-login__benefit-item {
  background-color: var(--card-bg, #111111); /* Card BG from custom palette */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 300px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none !important; /* Ensure no filters are used on images */
}

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

.page-login__feature-description,
.page-login__benefit-description {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

/* Login Guide */
.page-login__step-list,
.page-login__recovery-list,
.page-login__app-features,
.page-login__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__step-item,
.page-login__recovery-item,
.page-login__security-features li {
  background-color: var(--card-bg, #111111);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-login__step-title,
.page-login__recovery-title,
.page-login__security-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-color, #FFD36B);
  margin-bottom: 10px;
}

.page-login__step-description,
.page-login__recovery-description,
.page-login__security-description {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

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

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

.page-login__app-features {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
}

.page-login__app-features li {
  margin-bottom: 10px;
  background: none;
  border: none;
  padding: 0;
}

.page-login__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__app-image {
  width: 100%;
  max-width: 400px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  filter: none !important; /* Ensure no filters are used on images */
}

/* Support Options */
.page-login__support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}