/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: var(--site-bg, #140C0C); /* Ensure dark background as per custom colors */
  color: #FFF1E8; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px;
}

/* Hero Section */
.page-login__hero-section {
  padding: 10px 20px 40px; /* Small top padding, then more below */
  text-align: center;
  background: linear-gradient(180deg, rgba(198,31,31,0.8) 0%, rgba(20,12,12,0.8) 100%), url('[GALLERY:bg:1920x400:678wim,abstract_bg,red_gold_gradient]') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

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

.page-login__main-title {
  font-size: clamp(2em, 5vw, 3em);
  font-weight: 700;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__description {
  font-size: 1.1em;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-login__description strong {
  color: #FFB04A; /* Highlight keywords */
}

/* Form Section */
.page-login__form-section {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-login__form-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  color: #FFF1E8;
}

.page-login__form-title {
  font-size: 2.2em;
  color: #F3C54D; /* Gold for form title */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-login__form-wrapper {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-login__form-image {
  flex: 1;
  min-width: 300px;
}

.page-login__form-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  flex: 1;
  min-width: 300px;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1em;
  color: #FFF1E8;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #FFB04A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 176, 74, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  color: #FFB04A;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-login__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
  color: #FFF1E8;
}

.page-login__register-prompt a {
  color: #FFB04A;
  text-decoration: none;
  font-weight: 600;
}

.page-login__register-prompt a:hover {
  text-decoration: underline;
}

/* Info Section */
.page-login__info-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #140C0C; /* Ensure it matches body bg */
}

.page-login__info-title {
  font-size: 2.5em;
  color: #F3C54D;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-login__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
}

.page-login__feature-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-login__feature-heading {
  font-size: 1.5em;
  color: #FFB04A;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-text {
  font-size: 1em;
  color: #FFF1E8;
}

.page-login__feature-text strong {
  color: #F3C54D;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit width for desktop */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
}

.page-login__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.2);
  background-color: rgba(255, 176, 74, 0.1);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-login__form-wrapper {
    flex-direction: column;
  }
  .page-login__form-image,
  .page-login__login-form {
    min-width: unset;
    width: 100%;
  }
  .page-login__form-card {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 2em;
  }
  .page-login__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2em);
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Form Section */
  .page-login__form-section {
    padding: 30px 15px;
  }
  .page-login__form-card {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-login__form-wrapper {
    gap: 20px;
    flex-direction: column;
  }
  .page-login__form-image,
  .page-login__login-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__form-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__form-group {
    margin-bottom: 15px;
  }
  .page-login__form-input {
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .page-login__submit-button {
    font-size: 1em;
    padding: 12px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__register-prompt {
    font-size: 0.9em;
  }

  /* Info Section */
  .page-login__info-section {
    padding: 40px 15px;
  }
  .page-login__info-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-login__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-login__feature-item {
    padding: 25px;
  }
  .page-login__feature-heading {
    font-size: 1.3em;
  }
  .page-login__feature-text {
    font-size: 0.95em;
  }

  /* Buttons and Button Containers */
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}