:root {
  --primary-color: #0A2342; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --accent-color: #DC143C; /* Crimson Red for CTAs */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* From shared.css body background */
  --bg-light: #f8f9fa;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #ffffff;
}

/* Base styles for the login page content */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

/* Padding for fixed header */
.page-login__main-wrapper {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light); /* Default for dark sections */
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light); /* Default for dark sections */
}

/* Hero Section - Dark Background */
.page-login__hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #05162B 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__login-form-wrapper {
  background-color: var(--card-bg-dark-mode); /* Slightly transparent white for dark mode */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

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

.page-login__checkbox:checked::before {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 14px;
}

.page-login__checkbox-label {
  cursor: pointer;
}

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

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #ffd000;
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

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

.page-login__btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section - Light Background */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: var(--text-dark);
}

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

.page-login__benefit-item.page-login__card {
  background-color: var(--card-bg-light-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

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