/* ===== 远辰网盘系统 - 认证页面样式 ===== */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
}

/* 左侧装饰区 */
.auth-hero {
  background: linear-gradient(145deg, #0d1630 0%, #1a2d5a 40%, #0d2347 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,223,.18) 0%, transparent 70%);
  top: -120px; right: -160px;
}
.auth-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,201,160,.12) 0%, transparent 70%);
  bottom: -100px; left: -60px;
}
.auth-hero-inner { position: relative; z-index: 1; }
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}
.auth-logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 26px; height: 26px; fill: #fff; }
.auth-logo-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.auth-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
}
.auth-hero-title span {
  background: linear-gradient(90deg, #1a6fdf, #0ec9a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-hero-desc {
  font-size: 15px;
  color: #8a9dbf;
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b4c3d9;
  font-size: 14px;
}
.auth-feature-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(26,111,223,.5);
}

/* 右侧表单区 */
.auth-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  position: relative;
}
.auth-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  min-height: calc(100vh - 70px);
}
.auth-panel-footer {
  padding: 20px 52px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  line-height: 1.8;
}
.auth-panel-footer a { color: #8a97b5; }
.auth-panel-footer a:hover { color: var(--text-main); }

.auth-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.auth-form-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* 标签页切换 */
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-sub);
  transition: all var(--transition);
  user-select: none;
  border: none;
  background: none;
  font-family: var(--font-main);
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 输入框带图标 */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .form-control {
  padding-left: 40px;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}
.input-icon-wrap .input-icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.input-icon-wrap .input-icon-right:hover { color: var(--primary); }

/* 验证码输入行 */
.code-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: flex-end;
}
.btn-send-code {
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid rgba(26,111,223,.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 10px;
  transition: all var(--transition);
  font-family: var(--font-main);
}
.btn-send-code:hover { background: var(--primary); color: #fff; }
.btn-send-code:disabled { opacity: .6; cursor: not-allowed; background: var(--bg); color: var(--text-muted); }

/* 记住密码 & 忘记密码 */
.auth-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input { display: none; }
.checkbox-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.checkbox-label input:checked + .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked + .checkbox-box::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-46deg) translateY(-2px);
  display: block;
}

/* 提交按钮 */
.btn-auth-submit {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), #2180f0);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(26,111,223,.32);
  margin-top: 4px;
  font-family: var(--font-main);
}
.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,111,223,.40);
}
.btn-auth-submit:active { transform: translateY(0); }

/* 分割线 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 注册跳转提示 */
.auth-switch-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-switch-tip a { color: var(--primary); font-weight: 500; }
.auth-switch-tip a:hover { text-decoration: underline; }

/* 强度条 */
.pwd-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.pwd-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}
.pwd-strength-bar.weak { background: var(--danger); }
.pwd-strength-bar.medium { background: var(--warn); }
.pwd-strength-bar.strong { background: var(--success); }

/* 响应式 */
@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel-inner { padding: 40px 28px; }
  .auth-panel-footer { padding: 20px 28px; }
}
