/* ==========================================================================
   云枢科技 CloudHub - 独立登录页专用样式 (Login Page Stylesheet)
   ========================================================================== */

/* 登录切换 Tab */
.login-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 28px;
  position: relative;
}

.login-tabs.single-login-tab {
  justify-content: flex-start;
}

.tab-item {
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-item:hover {
  color: var(--primary-color);
}

.tab-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Tab 内容切换区域 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 记住密码 & 忘记密码选项栏 */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #475569;
}

.remember-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-color);
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.forgot-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* 二维码安全登录专区 */
.qrcode-login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
}

.qrcode-box {
  position: relative;
  width: 180px;
  height: 180px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  overflow: hidden;
}

.qrcode-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 二维码激光扫描动画线 */
.scan-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  box-shadow: 0 0 8px #2563eb;
  animation: scan 2.5s infinite linear;
}

@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.qrcode-tip {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 500;
}

.qrcode-subtip {
  font-size: 12px;
  color: var(--text-light);
}

.btn-refresh-qr {
  margin-top: 10px;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-refresh-qr:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}
