/* ========== 登录页 - 精确还原智学网APP截图 ========== */

.login-page {
  padding-bottom: 0 !important;
  background: #fff;
  z-index: 50;
}

.login-page.active {
  display: flex;
}

.login-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: #fff;
}

/* ===== 顶部绿色渐变背景 - 大面积柔和渐变 ===== */
.login-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(142, 236, 216, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(94, 224, 200, 0.4) 0%, transparent 50%),
    linear-gradient(170deg, #3ecfb4 0%, #4dd9c0 35%, #6de4cd 60%, #a8f0e0 85%, #e0faf4 100%);
  z-index: 0;
}

/* 装饰性半透明圆点（模拟截图中背景的微妙质感） */
.login-header-bg::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.login-header-bg::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
}

/* ===== 欢迎区域 ===== */
.login-welcome-section {
  position: relative;
  z-index: 1;
  padding: 56px 28px 36px;
}

.login-welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.login-welcome-left {
  flex: 1;
}

.login-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.login-main-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-weight: 400;
}

/* 吉祥物 - 非正方形，保持原始比例 */
.login-mascot-img {
  width: auto;
  height: 68px;
  flex-shrink: 0;
  margin-left: 10px;
  margin-top: -4px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

/* ===== 白色卡片 - 圆角上方覆盖在渐变上 ===== */
.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: -16px;
  padding: 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

/* ===== Tab - 账号登录 ===== */
.login-tabs {
  display: flex;
  padding: 24px 0 20px;
}

.login-tab {
  font-size: 17px;
  color: #333;
  font-weight: 700;
  padding-bottom: 10px;
  position: relative;
  cursor: default;
  letter-spacing: 0.5px;
}

.login-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, #4dd9c0, #36cfb4);
  border-radius: 2px;
}

/* ===== 输入框 - 圆角药丸型、浅灰背景 ===== */
.login-input-wrap {
  display: flex;
  align-items: center;
  background: #f4f5f7;
  border-radius: 26px;
  padding: 0 18px;
  height: 52px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.login-input-wrap:focus-within {
  box-shadow: 0 0 0 1.5px rgba(54, 207, 180, 0.3);
}

.login-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  padding: 0;
  height: 100%;
}

.login-input-wrap input::placeholder {
  color: #c8ccd0;
  font-size: 14px;
}

.login-input-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 8px;
}

.login-input-action .act-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.login-input-action .act-btn:active {
  opacity: 0.7;
}

.login-input-action .act-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== 错误提示 ===== */
.login-error {
  min-height: 20px;
  font-size: 13px;
  color: #ff4d4f;
  padding: 0 4px;
  text-align: center;
}

/* ===== 登录按钮 - 绿色渐变药丸形 ===== */
.login-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, #5ee3cb 0%, #3ecfb4 50%, #36c8ad 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(54, 207, 180, 0.35);
}

.login-btn:hover {
  box-shadow: 0 8px 24px rgba(54, 207, 180, 0.45);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 12px rgba(54, 207, 180, 0.3);
}

.login-btn.loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ===== 忘记账号 / 忘记密码 ===== */
.login-forgot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.login-forgot-link {
  font-size: 14px;
  color: #555;
  cursor: pointer;
  padding: 6px 16px;
  letter-spacing: 0.5px;
}

.login-forgot-link:active {
  color: #36cfb4;
}

.login-forgot-divider {
  width: 1px;
  height: 14px;
  background: #ddd;
}

/* ===== 协议勾选 ===== */
.login-agreement-row {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  gap: 8px;
  padding: 0 2px;
}

.login-agreement-row .agree-check {
  width: 15px;
  height: 15px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.login-agreement-row .agree-check.checked {
  background: #36cfb4;
  border-color: #36cfb4;
}

.login-agreement-row .agree-check.checked::after {
  content: '';
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.login-agreement-row .agree-text {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

.login-agreement-row .agree-text a {
  color: #36cfb4;
  text-decoration: none;
  font-weight: 500;
}

/* ===== 第三方登录区域 ===== */
.login-third-section {
  margin-top: auto;
  padding-bottom: 20px;
}

.third-title-row {
  text-align: center;
  margin-bottom: 14px;
  padding-top: 24px;
}

.third-title-row span {
  font-size: 12px;
  color: #c0c4cc;
  position: relative;
  display: inline-block;
  padding: 0 16px;
}

.third-title-row span::before,
.third-title-row span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: #e8e8e8;
}

.third-title-row span::before { right: 100%; }
.third-title-row span::after { left: 100%; }

.third-notice {
  font-size: 11px;
  color: #c0c4cc;
  text-align: center;
  line-height: 1.7;
  padding: 0 16px;
  margin-bottom: 18px;
}

.third-icons-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 0 16px;
}

.third-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 48px;
}

.third-item .t-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.third-item .t-icon:active {
  transform: scale(0.9);
}

/* 图标颜色 */
.third-item .t-icon.bell { background: #f7f7f7; }
.third-item .t-icon.weibo { background: #e6162d; }
.third-item .t-icon.wechat { background: #07c160; }
.third-item .t-icon.id-auth { background: #f7f7f7; }
.third-item .t-icon.other { background: #36cfb4; }

.third-item .t-icon svg { fill: #fff; }
.third-item .t-icon.bell svg { fill: #888; }
.third-item .t-icon.id-auth svg { fill: #888; }

.third-item .t-label {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}
