/* style/login.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1E90FF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --border-light: #e0e0e0;
}

.page-login {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-offset, 120px) - 80px); /* Adjust for footer height */
}

.page-login__container {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border-light);
}

.page-login__title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.page-login__description {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.page-login__input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: none;
}

.page-login__actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.page-login__button--primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-login__button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-login__forgot-password {
  color: var(--secondary-color);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #1a7ae0;
  text-decoration: underline;
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-login__register-text {
  margin: 0;
}

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

.page-login__register-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-login__features-section {
  width: 100%;
  max-width: 1200px;
  padding: 60px 20px;
  text-align: center;
  background-color: var(--text-light);
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.page-login__features-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-login__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__feature-heading {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-description {
  font-size: 15px;
  color: var(--text-dark);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
    min-height: calc(100vh - var(--header-offset, 120px) - 60px); /* Adjust for mobile footer height */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__container,
  .page-login__features-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__card {
    padding: 30px 20px;
    border-radius: 8px;
  }

  .page-login__title {
    font-size: 24px;
    margin-bottom: 15px;
  }

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

  .page-login__label,
  .page-login__input,
  .page-login__forgot-password,
  .page-login__register-prompt {
    font-size: 14px;
  }

  .page-login__input {
    padding: 12px 15px;
  }

  .page-login__button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__actions {
    gap: 10px;
  }

  .page-login__features-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

  .page-login__feature-heading {
    font-size: 18px;
  }

  .page-login__feature-description {
    font-size: 14px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__feature-icon {
    max-width: 120px;
  }
}