/* 寻念登录页 - 左右分栏布局 */
.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f5f5f5;
  overflow-x: hidden;
  position: relative;
}

/* 底部粉色波浪 - 在 login-wrapper 内，不向外蔓延 */
.login-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
}

.login-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  z-index: 9999;
  pointer-events: none;
}

.login-wave-svg {
  width: 120%;
  height: 100%;
  display: block;
  position: absolute;
  bottom: 0;
  left: -10%;
}

/* 波浪动画 - 水平流动 */
.login-wave-1 {
  animation: wave-flow 4s ease-in-out infinite;
}

.login-wave-2 {
  animation: wave-flow 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes wave-flow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5%);
  }
}

.login-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* 左侧插画区域 */
.login-left {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.login-logo {
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-logo-icon {
  width: 48px;
  height: 48px;
  background: #e74c5c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.login-logo-text {
  color: #e74c5c;
  font-size: 24px;
  font-weight: 600;
}

.login-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 80px;
}

.login-illustration img {
  max-width: 55%;
  max-height: 60%;
  object-fit: contain;
}

/* 右侧表单区域 */
.login-right {
  position: relative;
  width: 520px;
  min-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 48px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-card-header {
  position: relative;
  margin-bottom: 36px;
}

.login-card-register {
  position: absolute;
  top: 0;
  right: 0;
  color: #999;
  font-size: 14px;
  text-decoration: none;
}

.login-card-register:hover {
  color: #e74c5c;
}

.login-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* 表单样式 */
.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-control {
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #fff5f7;
  font-size: 15px;
}

.login-form .form-control:focus {
  background: #ffebef;
  box-shadow: 0 0 0 2px rgba(231, 76, 92, 0.2);
}

.login-form .form-control::placeholder {
  color: #b8a4a8;
}

.login-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.login-form-options .checkbox {
  margin: 0;
}

.login-form-options .checkbox label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.login-forgot {
  color: #999;
  font-size: 14px;
  text-decoration: none;
}

.login-forgot:hover {
  color: #e74c5c;
}

.login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #e74c5c;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #d63d4d;
  color: #fff;
}

.login-agreement {
  margin-top: 24px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

.login-agreement a {
  color: #e74c5c;
  text-decoration: none;
}

.login-agreement a:hover {
  text-decoration: underline;
}

/* ========== 注册页面 ========== */
.register-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f5f5f5;
}

.register-card {
  width: 100%;
  max-width: 480px;
  padding: 48px 56px 56px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.register-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.register-card-header {
  position: relative;
  margin-bottom: 40px;
}

.register-card-login {
  position: absolute;
  top: 0;
  right: 0;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.register-card-login:hover {
  color: #e74c5c;
}

.register-card-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.register-card-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.register-form .form-group {
  margin-bottom: 20px;
  max-width: 100%;
  min-width: 0;
}

.register-form .form-control {
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #fff5f7;
  font-size: 15px;
  box-sizing: border-box;
}

.register-form .form-control:focus {
  background: #ffebef;
  box-shadow: 0 0 0 2px rgba(231, 76, 92, 0.2);
}

.register-form .form-control::placeholder {
  color: #b8a4a8;
}

.register-form-hint {
  margin: -8px 0 20px 0;
  font-size: 12px;
  color: #999;
}

.register-captcha-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 73%;
  max-width: 100%;
}

.register-captcha-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.register-captcha-group .input-group-btn {
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.register-captcha-group .btn-captcha {
  display: inline-block;
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #e74c5c;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.register-captcha-group .btn-captcha:hover {
  background: #d63d4d;
  color: #fff;
}

.register-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #e74c5c;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.register-btn:hover {
  background: #d63d4d;
  color: #fff;
}

.register-agreement {
  margin-top: 24px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

.register-agreement a {
  color: #e74c5c;
  text-decoration: none;
}

.register-agreement a:hover {
  text-decoration: underline;
}

/* 注册页响应式 */
@media (max-width: 540px) {
  .register-card {
    padding: 40px 24px 48px;
  }

  .register-captcha-group {
    flex-wrap: wrap;
  }

  .register-captcha-group .form-control {
    width: 80%;
    flex: none;
  }

  .register-captcha-group .btn-captcha {
    width: 20%;
    text-align: center;
  }
}

/* 响应式 */
@media (max-width: 991px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-left {
    min-height: 200px;
    padding-top: 80px;
  }

  .login-logo {
    top: 24px;
    left: 24px;
  }

  .login-illustration {
    display: none;
  }

  .login-right {
    width: 100%;
    min-width: 0;
    flex: 1;
  }
}
