/* style/login.css */
/* 页面所有样式代码 */

:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --login-button-color: #EA7C07; /* 登录按钮橙色 */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --box-shadow-light: rgba(0, 0, 0, 0.1);
  --box-shadow-medium: rgba(0, 0, 0, 0.2);
  /* --header-offset is typically defined in shared.css, using a fallback here */
}

/* Base styles for the page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Body background is white */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-title--white {
  color: var(--text-light);
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.page-login__section-description--white {
  color: var(--text-light);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* padding-top handled by .page-login */
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: none !important; /* Absolutely no CSS filters on images */
}

.page-login__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.page-login__hero-content h1 {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 800px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 20px;
  color: var(--text-light);
  max-width: 900px;
  line-height: 1.5;
}

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

.page-login__login-form {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--box-shadow-light);
  border: 1px solid var(--border-color);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

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

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

.page-login__remember-me {
  color: var(--text-dark);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 15px;
  background-color: var(--login-button-color); /* Orange color */
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #d16b06; /* Slightly darker orange */
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--primary-color); /* Darker background for contrast */
  padding: 80px 0;
  color: var(--text-light);
}

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