/* style/login.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light body background */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Assuming shared.css sets body to white, this is for main content area */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Rely on body padding-top from shared.css for header offset */
  padding-top: 10px; /* Small decorative top padding */
  background-color: var(--background-color-light);
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px; /* Consistent with parent */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-color-dark);
}

/* General Container */
.page-login__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

/* Form Section */
.page-login__form-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
}

.page-login__form {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 0 auto;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color-dark);
  font-size: 16px;
}

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

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

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

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #007bff; /* A slightly darker blue for hover */
  text-decoration: underline;
}

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: var(--login-button-color);
  color: var(--text-color-light);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-decoration: none;
  text-align: center;
}

.page-login__login-button:hover {
  background-color: #d16b00; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-login__form-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #666;
}

.page-login__form-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__form-footer a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--background-color-light);
  padding: 60px 0;
}

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

.page-login__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-item img {
  width: 100%;
  height: auto;
  max-width: 250px; /* Constrain image size within card */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__benefit-text {
  font-size: 16px;
  color: #555;
}

/* Security Section */
.page-login__security-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
}

.page-login__security-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-login__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-login__security-text {
  flex-grow: 1;
  font-size: 17px;
  line-height: 1.7;
}

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

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--background-color-light);
  padding: 60px 0;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555;
  font-size: 16px;
}
details.page-login__faq-item .page-login__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin if it's the only child */
}
details.page-login__faq-item .page-login__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}
details.page-login__faq-item .page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-login__main-title {
    font-size: clamp(26px, 5vw, 40px);
  }

  .page-login__description {
    font-size: 17px;
  }

  .page-login__section-title {
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 30px;
  }

  .page-login__form {
    padding: 30px;
  }

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

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

  .page-login__security-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img,
  .page-login__benefit-item img,
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
  }

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

  .page-login__login-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-login__forgot-password-link,
  .page-login__register-link {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 15px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }
}