/* ============================================
   登录页面样式
   ============================================ */

/* ==================== 基础样式 ==================== */
.login-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==================== 右侧登录表单 ==================== */
.login-form-card {
  display: block;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.login-subtitle {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}

.login-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary, #f5f5f5);
}

.login-mode-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: var(--transition-base);
}

.login-mode-tab.active {
  background: var(--color-text-white, #fff);
  color: var(--color-text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.login-mode-tab:not(.active):hover {
  color: var(--color-text-primary);
}

.login-sms-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.input-icon.phone-icon {
  background-image: url('/images/phone_44x44.png');
}

.input-icon.captcha-icon {
  background-image: url('/images/captcha_44x44.png');
}

.input-icon.password-icon {
  background-image: url('/images/password_44x44.png');
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text-primary);
  transition: var(--transition-base);
  background: var(--color-text-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-tertiary);
}

.password-toggle {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 1;
}

.password-toggle.password-visible {
  background-image: url('/images/display_44x44.png');
}

.password-toggle.password-hidden {
  background-image: url('/images/hide_44x44.png');
}

.forgot-link {
  font-size: 13px;
  color: var(--color-text-yellow);
  text-decoration: none;
}

.form-agreement {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.agreement-link {
  color: var(--color-text-yellow);
  text-decoration: none;
}

.agreement-link:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(245, 200, 66, 0.3);
  position: relative;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.4);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.code-btn {
  width: 120px;
  text-align: center;
  color: var(--color-text-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* Loading 动画 */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(245, 200, 66, 0.3);
  border-top-color: var(--color-text-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.sms-tip {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  padding-left: 48px;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 1000%;
  }
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
  transform-origin: center center;
  transform: skewX(-25deg);
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border-light);
}

.register-link {
  color: var(--color-text-yellow);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.register-link:hover {
  text-decoration: underline;
}

/* ============================================
   Hero 首屏
   ============================================ */
.hero {
  margin-top: var(--navbar-height);
  background: var(--color-bg-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-inner {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
}

.hero-cover-img {
  margin: auto;
}

.hero-cta {
  position: absolute;
  background: url('/images/CoverButton_240x75.png');
  background-size: cover;
  width: calc(240px * var(--hero-scale-ratio));
  height: calc(75px * var(--hero-scale-ratio));
  bottom: calc(90px * var(--hero-scale-ratio));
  left: calc(97px * var(--hero-scale-ratio));
  text-indent: -10000px;
  transition: var(--transition-base);
}

.hero-cta:hover {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.05);
}

/* ==================== 登录表单 ==================== */
.card_wrap {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 460px;
  height: 100%;
  min-height: 550px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0px 0px 30px 10px rgba(245, 200, 66, 0.1);
  overflow: hidden;
  z-index: 5;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-text-white);
  box-sizing: border-box;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 100%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.highlight-1 {
  position: absolute;
  top: -10px;
  left: 35px;
  width: 50%;
  height: 20px;
  border-radius: 100%;
  background: rgba(255, 255, 255, 1);
  filter: blur(8px);
  z-index: 10;
  animation: glow-pulse-1 10s ease-in-out infinite;
}

.aliyunCaptcha-top {
  font-size: medium;
}

@keyframes glow-pulse-1 {

  0%,
  100% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(80%);
  }
}

.highlight-2 {
  position: absolute;
  right: -6px;
  bottom: 35px;
  height: 20%;
  width: 15px;
  border-radius: 100%;
  background: rgba(255, 255, 255, 1);
  filter: blur(8px);
  z-index: 10;
  animation: glow-pulse-2 10s ease-in-out infinite;
}

@keyframes glow-pulse-2 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-90%);
  }
}

.decoration {
  position: absolute;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  z-index: -1;
}

.decoration-1 {
  position: absolute;
  left: 0;
  top: -10%;
  width: 60%;
  height: 45%;
  background: rgba(243, 215, 173, 0.6);
  filter: blur(100px);
}

.decoration-2 {
  position: absolute;
  right: 0;
  bottom: -10%;
  width: 50%;
  height: 35%;
  background: rgba(243, 215, 173, 0.6);
  filter: blur(100px);
}

.card_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  z-index: 100;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {}

@media (max-width: 750px) {
  .card_wrap {
    position: absolute;
    top: 70%;
    left: 50%;
    right: 0;
    transform: translate(-50%, 0);
    width: 95%;
    height: 100%;
    min-height: 550px;
  }

  .card {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
  }

  .hero {
    align-items: flex-start;
  }

  .login-title {
    font-size: 40rem;
}
.card_content {
    width: 85%;
}
.login-btn {
    padding: 20rem;
    font-size: 32rem;
}
}