/* ========================================
   登录页专用样式
   ======================================== */

body {
  padding-top: 50px;
  min-height: 100vh;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
/*  min-height: calc(100vh - 50px);*/
  padding: 10px;
}

/* ================== 公告栏 ================== */
.notice-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px var(--spacing-lg);
  background: rgba(255, 105, 180, 0.08);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.notice-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.notice-text {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ================== 登录卡片 ================== */
.login-card {
  width: 100%;
  background: var(--bg-white);
  border-radius: 10px;
  padding: 10px 10px 10px;
  box-shadow:0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgb(245 186 216 / 12%), 0 24px 64px rgba(0, 0, 0, 0.06);
}

/* ================== 卡片头部 ================== */
.login-header {
  text-align: center;
  margin-bottom: 10px;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--spacing-lg);
}

.login-logo svg {
  width: 48px;
  height: 48px;
  color: #fff;
}

.login-title {
  font-size: 22px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

/* ================== 表单组 ================== */
.form-group {
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.required {
  color: var(--primary-color);
  font-size: 15px;
  line-height: 1;
}

/* ================== 输入框 ================== */
.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--border-light);
  border-radius: 25px;
  font-size: 16px;
  color: var(--text-primary);
  background: #fafafa;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border: 1px solid rgba(252 10 10 / 40%);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: rgba(252,10,10, 0.6);
}

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

.form-input.error {
  border-color: #e74c3c;
  background: #fff8f8;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* 无左图标的输入框 */
.form-input.no-icon {
  padding-left: var(--spacing-lg);
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary-color);
}

/* ================== 验证码行 ================== */
.captcha-row {
  display: flex;
  align-items: center;
}

.captcha-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.captcha-img {
  width: 110px;
  height: 46px;
  border-radius: 20px;
  margin-left: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  object-fit: cover;
}

.captcha-img:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

/* ================== 错误提示 ================== */
.error-message {
  font-size: 11px;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}

.error-message.show {
  display: flex;
}

/* ================== 提交按钮 ================== */
.submit-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgb(252 10 10 / 40%), #ff69b4);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 8px;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.25);
}

.submit-btn:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================== 注册链接 ================== */
.register-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 100%;
  border:1px solid rgba(255 119 105 / 40%);
  border-radius:25px;
  color: rgb(245 93 78);
  font-size: 16px;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-base);
  background: transparent;
}


/* ================== 分割线 ================== */
.divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background:#f3f4f6;
}

.divider-text {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ================== 装饰背景圆 ================== */
.bg-deco {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-deco-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -80px;
  background: #fff;
}

.bg-deco-2 {
  width: 200px;
  height: 200px;
  bottom: 60px;
  left: -60px;
  background: #fff;
}

.login-page > * {
  position: relative;
  z-index: 1;
}
