:root {
  --primary-color: #004D99;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Space for fixed header */
}

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

.page-login__hero-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #002d5c 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__text-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__text-link:hover {
  color: #fff;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  margin: 40px auto 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

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

.page-login__label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-light);
  font-size: 1.05em;
}

.page-login__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.page-login__button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-login__button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-login__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.page-login__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__link--register {
  font-weight: bold;
  font-size: 1em;
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 0.95em;
  color: #ccc;
}

.page-login__security-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.page-login__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-login__feature-description {
  font-size: 1em;
  color: #ccc;
}

.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
  border-top: 1px solid var(--border-color);
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 77, 153, 0.4);
  margin-top: 40px;
}

.page-login__cta-button:hover {
  background: #003d7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 77, 153, 0.6);
}

.page-login__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 77, 153, 0.3);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section,
  .page-login__security-section,
  .page-login__cta-section {
    padding: 40px 0;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-login__login-form-wrapper {
    padding: 30px 20px;
    margin-top: 20px;
  }

  .page-login__label {
    font-size: 1em;
  }

  .page-login__input {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-login__form-actions {
    margin-top: 20px;
    gap: 10px;
  }

  .page-login__button,
  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__link {
    font-size: 0.9em;
  }

  .page-login__register-text {
    margin-top: 20px;
    font-size: 0.9em;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item {
    padding: 25px;
  }

  .page-login__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-login__feature-title {
    font-size: 1.3em;
  }

  .page-login__cta-button {
    margin-top: 30px;
  }
  
  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__security-section,
  .page-login__cta-section,
  .page-login__login-form-wrapper,
  .page-login__form-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-login__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}