/* ============================================================
   牛哥智能体平台 · IP 产品登录/注册/激活 弹窗样式
   浅色主题，复用 index.css 的 .modal-overlay / .modal-dialog / .modal-title / .modal-close-x 约定
   ============================================================ */

.auth-modal {
  position: relative;
  width: 26rem;                 /* 登录/注册类弹窗更窄一些 */
  max-width: 90vw;
}

/* 品牌头部：让登录/注册/激活弹窗更像一个「产品入口」而非裸表单 */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.auth-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #1e1e3c;
  letter-spacing: 1px;
}

/* 标题居中，呼应品牌头部 */
.auth-modal .modal-title {
  text-align: center;
  margin-bottom: 22px;
}

/* 主/次按钮加高加粗，作为明显 CTA（覆盖 .btn 基类默认 padding） */
.auth-modal .btn-primary,
.auth-modal .btn-outline {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.875rem;
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f6f7fb;
  border: 1px solid #e4e7f2;
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
  background: #fff;
}

.auth-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 14px 0;
  font-size: 15px;
  color: #2c2c4a;
}

.auth-input-wrap input::placeholder {
  color: #a6a8bd;
}

.auth-toggle-eye {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #9a9cba;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;          /* 防止被 flex 挤压导致「显示」竖着折行 */
  white-space: nowrap;
}

.auth-toggle-eye:hover {
  color: #6c63ff;
}

.auth-hint {
  font-size: 12px;
  color: #e05353;
  display: none;
  padding-left: 4px;
}

.auth-hint.show {
  display: block;
}

/* 密码强度条：默认隐藏，有输入才显示（避免空占位） */
.auth-strength-track {
  display: none;
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.auth-strength-track.show {
  display: block;
}

.auth-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.auth-strength-text {
  font-size: 11px;
  margin-top: 4px;
  display: block;
  color: #9a9cba;
}

/* 提示信息 */
.auth-message {
  font-size: 13.5px;
  text-align: center;
  margin: 4px 0 0;
  min-height: 18px;
}

.auth-message.error {
  color: #e05353;
}

.auth-message.success {
  color: #2db96b;
}

/* 切换链接 */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: #71718c;
  margin: 6px 0 0;
}

.auth-switch a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 协议勾选 */
.auth-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #71718c;
}

.auth-agreement input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6c63ff;
}

.auth-agreement a {
  color: #6c63ff;
  text-decoration: none;
}

.auth-agreement a:hover {
  text-decoration: underline;
}

/* 激活弹窗说明文字 */
.auth-activate-desc {
  color: #71718c;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 按钮布局（激活弹窗：主+次） */
.auth-buttons {
  display: flex;
  gap: 12px;
}

.auth-buttons .btn-primary,
.auth-buttons .btn-outline {
  flex: 1;
}

/* 协议内容 */
.auth-agreement-body {
  color: #3f3f5c;
  font-size: 14px;
  line-height: 1.8;
}

.auth-agreement-body p {
  margin: 0 0 12px;
}

.auth-agreement-body strong {
  color: #1e1e3c;
}

/* 登录/注册主按钮宽度铺满 */
.auth-modal .btn-primary.full-width-btn {
  width: 100%;
}

@media (max-width: 480px) {
  .auth-modal {
    width: 92vw;
    padding: 1.75rem 1.5rem;
  }
}
