/* style/login.css */

:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f8f9fa;
  --form-bg: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* 🚨 固定导航栏间距（必须严格遵守） */
.page-login {
  padding-top: 120px; /* 桌面端：根据导航栏实际高度调整，确保内容不被固定导航栏遮挡 */
  color: var(--text-light); /* Body背景色为深色 #000，所以页面内容文字为浅色 */
}

.page-login__hero-section {
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:m99,login,hero_background]');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

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

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

.page-login__subtitle {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-login__form-wrapper {
  background: var(--form-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 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(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary-color);
  cursor: pointer;
}

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

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

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

.page-login__btn-secondary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__register-text {
  margin-top: 25px;
  color: var(--text-light);
  font-size: 1em;
}

.page-login__register-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__features-section {
  background-color: var(--background-light);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-dark);
}

.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-login__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

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

.page-login__feature-text {
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-login__cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}

.page-login__cta-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* 🚨 所有图片的基础响应式样式（必须严格遵守） */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* 移动端：根据移动端导航栏实际高度调整 */
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .page-login__hero-section {
    padding: 60px 15px;
    min-height: auto;
  }

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

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

  .page-login__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .page-login__remember-me {
    margin-bottom: 15px;
  }

  /* 🚨 移动端按钮响应式适配（必须严格遵守） */
  .page-login__submit-button,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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: 1.1em !important;
  }

  .page-login__register-text {
    font-size: 0.9em;
  }

  .page-login__features-section {
    padding: 60px 15px;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-login__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

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

  .page-login__feature-text {
    font-size: 0.9em;
  }

  .page-login__cta-section {
    padding: 60px 15px;
  }

  .page-login__cta-title {
    font-size: 2em;
  }

  .page-login__cta-description {
    font-size: 0.95em;
  }

  /* 🚨 移动端图片响应式适配（必须严格遵守） */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-section,
  .page-login__features-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}