/* ==============================================================================
   UPX Comic - 极简账号与会员系统样式 (无 Icon 纯净设计)
   ============================================================================== */

/* 顶部导航栏账号按钮区 */
.auth-nav-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-search ~ .auth-nav-area {
  margin-left: 0;
}

.auth-nav-btn {
  background: transparent;
  color: var(--text, #0F172A);
  border: 1px solid var(--border, #E2E8F0);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auth-nav-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.auth-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #0F172A);
}

.auth-user-btn:hover {
  border-color: #94A3B8;
}

.auth-vip-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.auth-admin-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #EDE9FE;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

/* 遮罩背景 */
.auth-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗主体卡片 */
.auth-modal-card {
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 24px 22px;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.auth-modal-backdrop.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

/* 关闭按钮 (纯文字无Icon) */
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.auth-modal-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* 顶部选项卡切换 (登录 / 注册) */
.auth-tabs {
  display: flex;
  border-bottom: 1.5px solid #F1F5F9;
  margin-bottom: 20px;
}

.auth-tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.2s ease;
}

.auth-tab-item.active {
  color: #0F172A;
  border-bottom-color: #0F172A;
}

/* 标题 */
.auth-view-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 18px;
  text-align: left;
}

/* 表单组件 */
.auth-form-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #F8FAFC;
  font-size: 13px;
  color: #0F172A;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #0F172A;
  background: #FFFFFF;
}

.auth-hint {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

/* 按钮 */
.auth-submit-btn {
  width: 100%;
  padding: 10px;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.auth-submit-btn:hover {
  background: #1E293B;
}

.auth-submit-btn:disabled {
  background: #94A3B8;
  cursor: not-allowed;
}

/* 辅助链接 */
.auth-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
}

.auth-link {
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

/* 提示与报错框 */
.auth-msg-box {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 12px;
  display: none;
}

.auth-msg-error {
  display: block;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.auth-msg-success {
  display: block;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
}

/* 用户个人中心视图 */
.auth-profile-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.auth-profile-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}

.auth-profile-row:last-child {
  border-bottom: none;
}

.auth-profile-key {
  color: #64748B;
}

.auth-profile-val {
  font-weight: 600;
  color: #0F172A;
}

.auth-secondary-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #EF4444;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.auth-secondary-btn:hover {
  background: #FEF2F2;
}
