/* ===== 登录页 ===== */
body.login-page {
  min-width: 1000px;
  background: #d9f7f7;
}

.login-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.login-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-logo img { height: 48px; }
.login-logo-fallback {
  display: none;
  align-items: center;
  gap: 8px;
}
.login-logo-fallback.is-visible {
  display: flex;
}
.login-logo-fallback .logo-icon {
  background: linear-gradient(135deg, #ff9900, #0066ff);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo-fallback .logo-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  max-width: 140px;
  line-height: 1.3;
}

.login-header-divider {
  width: 1px;
  height: 28px;
  background: #ddd;
}

.login-header-title {
  font-size: 20px;
  color: #333;
  font-weight: 400;
  letter-spacing: 1px;
}

.login-main {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 40px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.login-illustration {
  flex: 1;
  min-width: 360px;
  max-width: 520px;
}
.login-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.login-card {
  width: 400px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  padding: 28px 32px 36px;
}

.login-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
}

.login-tabs {
  display: flex;
  gap: 28px;
}

.login-tab {
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  padding: 0 0 14px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.login-tab.active {
  color: #333;
  font-weight: 600;
}
.login-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #e53935;
}

.login-register-link {
  font-size: 12px;
  color: #999;
  padding-bottom: 14px;
  white-space: nowrap;
  transition: color .2s;
}
.login-register-link:hover { color: #e53935; }

.login-form { display: none; }
.login-form.active { display: block; }

.login-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  margin-bottom: 18px;
  transition: border-color .2s;
  overflow: hidden;
}
.login-field:focus-within { border-color: #b3d4fc; }

.login-field-icon {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-right: 1px solid #dcdfe6;
  color: #c0c4cc;
}
.login-field-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.login-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
  min-width: 0;
  font-family: inherit;
}
.login-field input::placeholder { color: #c0c4cc; }

.login-field-action {
  width: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #c0c4cc;
  cursor: pointer;
  padding: 0;
}
.login-field-action:hover { color: #999; }
.login-field-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.login-field-action svg.hidden { display: none; }
.login-field-action.hidden { visibility: hidden; pointer-events: none; }

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 14px;
  height: 14px;
  accent-color: #e53935;
  cursor: pointer;
}

.login-forgot {
  color: #999;
  transition: color .2s;
}
.login-forgot:hover { color: #e53935; }

.login-submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 2px;
  background: #e53935;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.login-submit:hover { background: #d32f2f; }

.login-sms-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.login-sms-row .login-field { flex: 1; margin-bottom: 0; }

.login-sms-btn {
  flex-shrink: 0;
  width: 110px;
  height: 44px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.login-sms-btn:hover:not(:disabled) {
  border-color: #e53935;
  color: #e53935;
}
.login-sms-btn:disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.login-msg {
  min-height: 20px;
  margin: -8px 0 16px;
  font-size: 13px;
  text-align: center;
}
.login-msg.error { color: #e53935; }
.login-msg.success { color: #43a047; }

.login-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.register-notice-card {
  padding: 36px 40px 32px;
}

.register-notice-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.register-notice-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  text-align: center;
}

.register-notice-text strong {
  color: #e53935;
  font-weight: 600;
}

.register-notice-list {
  margin: 0 0 28px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
  color: #666;
}

.register-notice-list code {
  padding: 2px 6px;
  border-radius: 3px;
  background: #f5f5f5;
  color: #e53935;
  font-size: 13px;
}

.register-notice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.register-notice-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  transition: color .2s;
}

.register-notice-back:hover {
  color: #e53935;
}
