/* style/login.css */

/* Body background is #0D0E12 (dark), so text will be #FFF3E6 (Text Main) */
/* Card background #17191F (Card B G) */
/* Buttons: linear-gradient(180deg, #FFA53A 0%, #D96800 100%) */
/* Borders: #A84F0C */
/* Glow: #FFB04D */
/* Deep Orange: #D96800 */

.page-login {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, text below */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px; /* Space between image and content */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-login__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space below image before text */
}

.page-login__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-login__subtitle {
  font-size: 1.1em;
  color: rgba(255, 243, 230, 0.8); /* Lighter Text Main */
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Background */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.page-login__form-wrapper {
  background-color: #17191F; /* Card B G */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border: 1px solid #A84F0C; /* Border */
}

.page-login__form-title {
  color: #FF8C1A; /* Primary color */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFF3E6; /* Text Main */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  color: #FFF3E6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 243, 230, 0.6); /* Lighter Text Main */
}

.page-login__form-input:focus {
  outline: none;
  border-color: #FFB04D; /* Glow */
  box-shadow: 0 0 0 3px rgba(255, 176, 77, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FF8C1A; /* Primary color */
}

.page-login__checkbox-label {
  color: #FFF3E6; /* Text Main */
  font-size: 0.95em;
}

.page-login__forgot-password-link {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__submit-btn {
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__submit-btn:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly brighter on hover */
  transform: translateY(-2px);
}

.page-login__register-cta {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 79, 12, 0.5); /* Border with transparency */
}

.page-login__register-text {
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  font-size: 1em;
}

.page-login__register-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #FFA53A; /* Auxiliary color */
  border-radius: 8px;
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__register-btn:hover {
  background-color: #FFA53A; /* Auxiliary color */
  color: #17191F; /* Card B G */
}

.page-login__illustration {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-login__illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Security Section */
.page-login__security-section {
  padding: 60px 20px;
  background-color: #17191F; /* Card B G */
  text-align: center;
}

.page-login__security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__security-title {
  color: #FF8C1A; /* Primary color */
  margin-bottom: 40px;
  font-size: 2.2em;
  font-weight: bold;
}

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

.page-login__feature-item {
  background-color: #0D0E12; /* Background */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #A84F0C; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__feature-item img {
  width: 100%;
  min-width: 200px; /* Ensure minimum size */
  max-width: 250px; /* Adjust max-width to fit card better, but still > 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: bold;
}

.page-login__feature-description {
  color: rgba(255, 243, 230, 0.7); /* Lighter Text Main */
  font-size: 0.95em;
}

.page-login__support-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #FF8C1A; /* Primary color */
  border-radius: 8px;
  background-color: transparent;
  color: #FF8C1A; /* Primary color */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__support-btn:hover {
  background-color: #FF8C1A; /* Primary color */
  color: #0D0E12; /* Background */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 30px 15px 20px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

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

  .page-login__container {
    flex-direction: column;
    gap: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-wrapper,
  .page-login__illustration {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  .page-login__form-title {
    font-size: 1.8em;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

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

  .page-login__security-title {
    font-size: 1.8em;
  }

  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Force responsive images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image,
  .page-login__illustration img,
  .page-login__feature-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive buttons */
  .page-login__submit-btn,
  .page-login__register-btn,
  .page-login__support-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }
  
  .page-login__form-options .page-login__forgot-password-link {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__security-title {
    font-size: 1.5em;
  }
}