/* style/login.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000; /* From shared.css body */
}

/* Page base styles */
.page-login {
  color: var(--text-light); /* Default light text for dark body background */
  background-color: var(--background-dark); /* Ensure consistency */
  min-height: 100vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Banner Section */
.page-login__hero-banner {
  text-align: center;
  padding: 80px 0 60px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
  margin-bottom: 40px;
}

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

.page-login__description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-login__hero-image {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(255, 215, 0, 0.1)); /* Subtle gradient */
  border-radius: 12px;
  margin: 0 20px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-login__form-container {
  max-width: 500px; /* Constrain form width */
}

.page-login__form-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 600;
}

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

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 15px;
}

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

.page-login__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.page-login__checkbox-label {
  color: var(--text-light);
  cursor: pointer;
}

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

.page-login__forgot-password-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__submit-button {
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-dark); /* Dark text on gold button for contrast */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  width: 100%; /* Ensure button fills width */
  box-sizing: border-box; /* Include padding in width */
}

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

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

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

.page-login__register-text {
  margin-bottom: 15px;
}

.page-login__register-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
}

.page-login__register-button:hover {
  background-color: #1a7ae0; /* Slightly darker blue */
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(30, 144, 255, 0.4);
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.03); /* Subtle dark background */
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__security-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 600;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__security-icon {
  width: 100px; /* Visual size, actual HTML width is larger for min-size compliance */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); /* Allowed shadow, not color filter */
}

.page-login__security-item-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__security-item-description {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.page-login__contact-support {
  font-size: 18px;
  color: var(--text-light);
}

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

.page-login__support-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__form-title {
    font-size: 32px;
  }
  .page-login__security-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-banner {
    padding: 60px 0 40px;
    margin-bottom: 30px;
  }

  .page-login__main-title {
    font-size: 32px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__form-section {
    padding: 40px 0;
    margin: 0 15px 40px;
  }

  .page-login__form-title {
    font-size: 28px;
  }

  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }

  /* Buttons responsive */
  .page-login__submit-button,
  .page-login__register-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-login__register-prompt {
    margin-top: 25px;
  }

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

  .page-login__security-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

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

  .page-login__security-icon {
    width: 80px; /* Adjust visual size for mobile, but actual HTML width/height is larger */
    margin-bottom: 15px;
  }

  .page-login__security-item-title {
    font-size: 20px;
  }

.page-login__security-item-description {
  font-size: 15px;
}

  .page-login__contact-support {
    font-size: 16px;
  }
}