/* ============================================================
   身份验证弹窗样式（lc-）
   独立样式，不依赖 Element UI 或图标字体（✕ 与 ⚠ 为 CSS/HTML 实体）。
   所有规则都限定在 .lc-dialog / .lc-* 作用域内，不会与页面样式冲突。
   层级：遮罩层 z-index 2500，弹窗 z-index 2501。

   配色对齐站点设计系统（emerald + coral，见 assets/css/styles.css 的 :root）：
   直接引用其 CSS 变量并附带回退值 —— 站点改主题时弹窗自动跟随，
   单独使用本文件时则回退到同色系硬编码值。
   ============================================================ */

.lc-dialog-wrap {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2500;
  overflow: auto;
  background: rgba(21, 40, 34, 0.5); /* 站点 ink 色（#152822）加深的遮罩 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.lc-dialog {
  position: relative;
  width: 450px;
  max-width: calc(100vw - 40px);
  margin: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E4EDE8);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-lg, 0 24px 60px -20px rgba(21, 40, 34, 0.25));
  text-align: left;
  font-size: 14px;
  color: var(--ink, #152822);
}

.lc-dialog .el-dialog__header {
  border-bottom: 1px solid var(--line, #E4EDE8);
  padding: 11px 30px;
  border-top-left-radius: calc(var(--radius-lg, 18px) - 1px);
  border-top-right-radius: calc(var(--radius-lg, 18px) - 1px);
}

.lc-dialog .el-dialog__headerbtn {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.lc-dialog .el-dialog__headerbtn i::before {
  content: "\2715";
  color: var(--ink, #152822);
  font-family: sans-serif;
}

.lc-dialog .el-dialog__headerbtn:hover i::before {
  color: var(--primary-hover, #047857);
}

.lc-dialog .lc-body {
  padding: 26px 30px 24px;
}

.lc-warning {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}

.lc-warn-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-soft, #FFEDE9);
  color: var(--coral-deep, #EF6351);
  font-size: 18px;
  font-style: normal;
  line-height: 30px;
  text-align: center;
  margin-right: 12px;
}

.lc-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #152822);
  line-height: 22px;
}

.lc-text {
  font-size: 13px;
  color: var(--muted, #5D7168);
  line-height: 20px;
  margin-top: 6px;
}

.lc-steps {
  background: var(--primary-soft, #DFF3EA);
  border-radius: 6px;
  padding: 14px 16px 4px;
  margin-bottom: 16px;
}

.lc-step {
  font-size: 13px;
  color: var(--ink, #152822);
  line-height: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.lc-num {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary, #059669);
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  margin-right: 10px;
}

.lc-step kbd {
  display: inline-block;
  background: var(--surface, #fff);
  border: 1px solid var(--line-strong, #CFDED7);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 16px;
  color: var(--ink, #152822);
  font-family: inherit;
  margin: 0 2px;
}

.lc-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  border: 1px solid var(--line-strong, #CFDED7);
  border-radius: 25px;
  padding: 0 20px;
  background: var(--surface, #fff);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.lc-cmd:hover,
.lc-cmd:focus {
  border-color: var(--primary, #059669);
  outline: none;
}

/* 与站点 .input:focus 相同的聚焦光环 */
.lc-cmd:focus {
  box-shadow: var(--ring, 0 0 0 3px rgba(5, 150, 105, 0.22));
}

.lc-cmd code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--ink, #152822);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-copy-hint {
  flex: none;
  margin-left: 12px;
  font-size: 12px;
  color: var(--primary-hover, #047857);
}

.lc-copied {
  display: none;
  font-size: 12px;
  color: var(--primary-hover, #047857);
  margin-top: 8px;
  text-align: right;
}

.lc-copied.show { display: block; }
