:root {
  --main-color: #113B7A;
  --aux-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
  
  /* RGB values for transparent effects */
  --main-color-rgb: 17, 59, 122;
  --aux-color-rgb: 29, 95, 209;
  --glow-color-rgb: 79, 168, 255;
  --border-color-rgb: 36, 77, 132;
}

/* General styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  line-height: 1.6;
  background-color: transparent; /* Body handles the actual background */
  padding-bottom: 40px;
}

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

.page-login__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: none;
}

.page-login__btn-secondary:hover {
  background: rgba(var(--border-color-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__btn-submit {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-register {
  background: var(--glow-color); /* Use Glow color for register button in login form */
  color: var(--deep-navy); /* Deep Navy for text on Glow */
  border: none;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(79, 168, 255, 0.4);
}

.page-login__btn-register:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 168, 255, 0.6);
}

.page-login__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 6px;
}

/* Images */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-login__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image bottom */
  position: relative;
  z-index: 2; /* Ensure content is above image */
  background: var(--deep-navy); /* Match body background for seamless transition */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding-bottom: 60px;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-login__description {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background: var(--deep-navy); /* Ensure consistency */
}

.page-login__login-card {
  background: var(--card-bg); /* Use specified card background */
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.page-login__login-form {
  margin-bottom: 30px;
}

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

.page-login__form-label {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--deep-navy); /* Darker input background */
  color: var(--text-main);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--glow-color); /* Highlight checkbox */
}

.page-login__checkbox-label {
  color: var(--text-secondary);
}

.page-login__forgot-password {
  color: var(--glow-color);
  text-decoration: none;
}

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

.page-login__register-prompt {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.page-login__register-prompt p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__benefit-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%; /* Make icons round */
  background: rgba(var(--glow-color-rgb), 0.1);
  padding: 10px;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-login__promo-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-login__promo-card .page-login__promo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 20px 10px;
}

.page-login__promo-card .page-login__promo-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-login__promo-card .page-login__btn-small {
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start */
  background: var(--glow-color);
  color: var(--deep-navy);
}

.page-login__view-all-promos {
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Download App Section */
.page-login__download-app-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--aux-color) 100%);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__app-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__app-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-login__app-info {
  max-width: 500px;
  text-align: left;
}

.page-login__app-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-login__app-features li {
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-login__app-feature-icon {
  color: var(--gold-color);
  font-size: 20px;
  margin-right: 10px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

details.page-login__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--glow-color);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: rgba(var(--border-color-rgb), 0.2);
}