/**
 * 会员中心 / 认证页补充样式（配合 Tailwind + RequireJS validator）
 */
body.member-page {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

/* nice-validator 提示 */
.n-bootstrap .controls,
.form-section .n-bootstrap .controls {
  position: relative;
}
.n-bootstrap .n-right {
  margin-top: 0;
  top: -20px;
  position: absolute;
  left: 0;
  text-align: right;
  width: 100%;
}
.n-bootstrap .n-right .msg-wrap {
  position: relative;
}

/* layer 弹窗表单 */
.form-layer {
  height: 100%;
  min-height: 150px;
  min-width: 300px;
}
.form-body {
  width: 100%;
  overflow: auto;
  top: 0;
  position: absolute;
  z-index: 10;
  bottom: 50px;
  padding: 15px;
}
.form-layer .form-footer {
  height: 50px;
  line-height: 50px;
  background-color: #ecf0f1;
  width: 100%;
  position: absolute;
  z-index: 200;
  bottom: 0;
  margin: 0;
}
.form-footer .form-group {
  margin-left: 0;
  margin-right: 0;
}

/* 头像上传 */
.profile-avatar-container {
  position: relative;
  width: 100px;
}
.profile-avatar-container .profile-user-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.profile-avatar-container .profile-avatar-text {
  display: none;
}
.profile-avatar-container:hover .profile-avatar-text {
  display: block;
  position: absolute;
  height: 100px;
  width: 100px;
  background: #444;
  opacity: 0.6;
  color: #fff;
  top: 0;
  left: 0;
  line-height: 100px;
  text-align: center;
  border-radius: 9999px;
}
.profile-avatar-container button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  opacity: 0;
  cursor: pointer;
}

/* 会员侧栏 mobile */
.member-sidebar-toggle {
  display: none;
}
@media (max-width: 1023px) {
  .member-sidebar {
    position: fixed;
    top: 5rem;
    left: -280px;
    z-index: 40;
    width: 280px;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  body.member-sidebar-open .member-sidebar {
    left: 0;
  }
  .member-sidebar-toggle {
    display: flex;
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
  }
}

/* bootstrap-table 在会员附件页兼容 */
.member-panel .fixed-table-container {
  border-radius: var(--radius-lg);
  border-color: var(--border-light);
}

/* ========== 登录 / 注册认证页 ========== */
.auth-panel {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2rem;
  background: #fff;
  border-radius: 1.125rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card__tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.auth-card__tab {
  display: inline-block;
  padding: 0 0 0.875rem;
  margin-bottom: -1px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.auth-card__tab:hover {
  color: #165dff;
  text-decoration: none;
}

.auth-card__tab--active {
  color: #165dff;
  border-bottom-color: #165dff;
}

.auth-card__hint {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
}

.auth-card__role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding: 0.375rem;
  margin-bottom: 1.75rem;
  background: #f1f5f9;
  border-radius: 0.875rem;
}

.auth-card__role-btn {
  display: block;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  color: #64748b;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-card__role-btn:hover {
  color: #165dff;
  text-decoration: none;
}

.auth-card__role-btn--active {
  background: #fff;
  color: #165dff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-card__error {
  margin-bottom: 1rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
}

.auth-form .auth-field {
  margin-bottom: 1.375rem;
  position: relative;
}

.auth-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
}

.auth-label.required::before {
  content: '*';
  color: #ef4444;
  margin-right: 0.125rem;
}

.auth-input {
  display: block;
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem;
  font-size: 1rem;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-input:focus {
  border-color: #165dff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: #6b7280;
  cursor: pointer;
  font-weight: 400;
}

.auth-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #165dff;
}

.auth-link {
  color: #165dff;
  text-decoration: none;
}

.auth-link:hover {
  color: #0e4fd1;
  text-decoration: underline;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 3.25rem;
  margin-bottom: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #165dff 0%, #0e4fd1 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

.auth-submit:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-secondary {
  display: block;
  width: 100%;
  padding: 0.8125rem;
  font-size: 0.9375rem;
  text-align: center;
  color: #6b7280;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.auth-secondary:hover {
  color: #165dff;
  background: #f1f5f9;
  border-color: #cbd5e1;
  text-decoration: none;
}

.auth-notice {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
}

.auth-notice i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.auth-form .n-bootstrap .controls {
  position: relative;
}

.auth-form .n-bootstrap .n-right {
  margin-top: 0;
  top: -18px;
  position: absolute;
  left: 0;
  text-align: right;
  width: 100%;
}

@media (min-width: 1280px) {
  .auth-panel {
    max-width: 620px;
  }

  .auth-card {
    padding: 3rem 3rem 2.5rem;
  }

  .auth-card__tab {
    font-size: 1.375rem;
  }

  .auth-input,
  .auth-submit {
    height: 3.5rem;
  }
}

@media (max-width: 640px) {
  .auth-panel {
    max-width: 100%;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 0.875rem;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  }

  .auth-card__tab {
    font-size: 1rem;
  }
}
