/* style/login.css */

/* General page-login container styles */
.page-login {
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Fixed header spacing */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px; /* Desktop padding-top for fixed header */
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
  box-sizing: border-box;
}

.page-login__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 1.4em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-login__form-container {
  background-color: #2a2a2a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #e0e0e0;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #00BFFF; /* Deep blue border */
  border-radius: 8px;
  background-color: #3a3a3a;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

.page-login__form-input:focus {
  border-color: #FFD700; /* Gold focus */
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
  outline: none;
}

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700; /* Gold primary button */
  color: #121212; /* Dark text for contrast on gold */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__forgot-password-link {
  color: #00BFFF; /* Deep blue link */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.page-login__forgot-password-link:hover {
  color: #FFD700; /* Gold hover */
  text-decoration: underline;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #e0e0e0;
}

.page-login__register-prompt p {
  margin: 0;
  color: #e0e0e0; /* Ensure text color is light */
}

.page-login__register-link {
  color: #FFD700; /* Gold link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #00BFFF; /* Deep blue hover */
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #121212;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-login__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefits-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 50px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-login__benefit-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff; /* Ensure text color is light */
}

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

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login__benefit-heading {
  font-size: 1.5em;
  color: #00BFFF; /* Deep blue heading */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-login__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-login__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-login__cta-button--primary {
  background-color: #FFD700;
  color: #121212;
}

.page-login__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-login__cta-button--secondary {
  background-color: #00BFFF;
  color: #ffffff;
}

.page-login__cta-button--secondary:hover {
  background-color: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__subtitle {
    font-size: 1.3em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 2em;
  }
  .page-login__benefits-title,
  .page-login__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  /* Fixed header spacing for mobile */
  .page-login__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    line-height: 1.3;
  }
  .page-login__subtitle {
    font-size: 1.1em;
  }

  .page-login__form-section {
    padding: 40px 15px;
  }
  .page-login__form-container {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__form-input {
    padding: 12px;
  }
  .page-login__submit-button {
    padding: 12px 20px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__forgot-password-link,
  .page-login__register-prompt,
  .page-login__register-link {
    font-size: 0.9em;
  }

  .page-login__benefits-section {
    padding: 60px 15px;
  }
  .page-login__benefits-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-login__benefit-item {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 80px;
    height: 80px;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-login__benefit-heading {
    font-size: 1.3em;
  }
  .page-login__benefit-description {
    font-size: 0.95em;
  }

  .page-login__cta-section {
    padding: 60px 15px;
  }
  .page-login__cta-title {
    font-size: 2em;
  }
  .page-login__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__cta-button {
    width: 100%;
    padding: 15px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Global image responsive styles (important for all images) */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global section/container responsive styles for mobile */
@media (max-width: 768px) {
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__form-container,
  .page-login__benefits-container,
  .page-login__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Specific padding for content inside sections on mobile */
  .page-login__hero-content,
  .page-login__form-container,
  .page-login__benefits-container,
  .page-login__cta-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}