/* style/login.css */

:root {
  --primary-color: #003366; /* Deep Ocean Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.25);
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--bg-dark); /* Body background is #0a0a0a */
  padding-top: 120px; /* Space for fixed header on desktop */
}

/* Hero Section */
.page-login__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #001f40 100%);
  position: relative;
  overflow: hidden;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: 3.2em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px var(--shadow-dark);
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  margin: 0 auto 60px;
  box-shadow: 0 10px 30px var(--shadow-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.page-login__card-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--secondary-color);
  background: rgba(0, 0, 0, 0.6);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--secondary-color);
}

.page-login__checkbox-label {
  color: #e0e0e0;
}

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

.page-login__link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  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);
}

.page-login__btn-primary:hover {
  background: #ffc400;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

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

.page-login__image-wrapper {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* Light Section (e.g., Features) */
.page-login__light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 20px;
}

.page-login__light-section .page-login__section-title,
.page-login__light-section .page-login__section-description {
  color: var(--text-dark);
}

.page-login__light-section .page-login__link {
  color: var(--primary-color);
}

.page-login__light-section .page-login__link:hover {
  color: #001f40;
}

/* Dark Section (e.g., Guide, Blog) */
.page-login__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description {
  color: var(--text-light);
}

/* Features Grid */
.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff; /* Light background for card in light section */
  color: var(--text-dark);
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-light);
}

.page-login__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Guide Section */
.page-login__guide-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-login__guide-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__guide-subtitle {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__guide-item p {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-login__guide-list {
  margin-left: 20px;
  color: #e0e0e0;
  list-style-type: decimal;
}

.page-login__guide-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 20px;
  text-align: center;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Or change to '-' */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-login__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Blog Section */
.page-login__blog-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #001f40 0%, var(--primary-color) 100%);
}

.page-login__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__blog-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-dark);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-dark);
}

.page-login__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-login__blog-link {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: var(--text-dark);
}

.page-login__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
}

.page-login__blog-item-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-login__blog-item-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
}

.page-login__blog-cta {
  margin-top: 60px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.page-login__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__hero-description,
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__login-card {
    max-width: 400px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Space for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section,
  .page-login__light-section,
  .page-login__dark-section {
    padding: 60px 15px;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__hero-description,
  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__login-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 25px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__features-grid,
  .page-login__guide-content,
  .page-login__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item,
  .page-login__guide-item,
  .page-login__blog-item {
    padding: 25px;
  }

  .page-login__feature-title {
    font-size: 1.3em;
  }

  .page-login__guide-subtitle {
    font-size: 1.5em;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  
  .page-login__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }

  .page-login__hero-image,
  .page-login__blog-item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
  }
  
  .page-login__blog-item-image {
    height: 180px;
  }

  .page-login__blog-link {
    padding: 20px;
  }
  .page-login__blog-item-title {
    font-size: 1.2em;
  }
  .page-login__blog-item-excerpt {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__login-card {
    padding: 20px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-input {
    font-size: 0.9em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__checkbox-group {
    width: 100%;
    justify-content: flex-start;
  }
  .page-login__link {
    margin-left: 0;
  }
  .page-login__feature-title {
    font-size: 1.2em;
  }
  .page-login__guide-subtitle {
    font-size: 1.3em;
  }
}