/* CodaCV Auth Modal — iframe 内全屏双栏 */
html, body.cv-auth-body {
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 580px;
  overflow: hidden;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #111827;
}
.cv-auth-body *,
.cv-auth-body *::before,
.cv-auth-body *::after { box-sizing: border-box; }

.cv-auth-overlay {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 580px;
}

.cv-auth-left {
  flex: 1 1 50%;
  width: 50%;
  background: #eef2ff;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.cv-auth-left-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cv-auth-right {
  flex: 1 1 54%;
  width: 54%;
  padding: 40px 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: auto;
  min-width: 0;
}

.cv-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.cv-auth-close:hover { background: #f3f4f6; color: #374151; }

.cv-auth-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cv-auth-header { text-align: center; margin-bottom: 16px; }
.cv-auth-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.cv-auth-header p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.cv-auth-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid #eef0f4;
  margin-bottom: 16px;
}
.cv-auth-tab {
  padding: 0 0 12px;
  border: none;
  background: none;
  font-size: 15px;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.cv-auth-tab.is-active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}
.cv-auth-tab:hover:not(.is-active) { color: #111827; }

.cv-auth-pane { display: none; }
.cv-auth-pane.is-active { display: block; }

.cv-auth-qr-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.cv-auth-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 156px;
  align-items: center;
}
.cv-auth-qr-wrap img {
  width: 156px;
  height: 156px;
  border-radius: 8px;
}
.cv-auth-qr-tip {
  margin: 0;
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}
.cv-auth-qr-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.cv-auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: #c0c4cc;
  font-size: 13px;
}
.cv-auth-or::before,
.cv-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eef0f4;
}

.cv-auth-alt {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
}
.cv-auth-alt:hover {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}
.cv-auth-alt-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-auth-alt-left .mdi { color: #4f46e5; font-size: 18px; }

.cv-auth-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
}
.cv-auth-link:hover { color: #4f46e5; }

.cv-auth-group { margin-bottom: 12px; position: relative; }
.cv-auth-input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: 0;
  background: #fff;
  color: #111827;
}
.cv-auth-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.cv-auth-input::placeholder { color: #9ca3af; }

.cv-auth-code-btn {
  position: absolute;
  right: 12px;
  top: 0;
  height: 48px;
  line-height: 48px;
  color: #4f46e5;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.cv-auth-captcha {
  position: absolute;
  right: 0;
  top: 0;
  height: 48px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
}

.cv-auth-eye {
  position: absolute;
  right: 14px;
  top: 14px;
  color: #d1d5db;
  cursor: pointer;
  font-size: 18px;
}

.cv-auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.cv-auth-submit:hover { background: #4338ca; }
.cv-auth-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* iframe 内可见反馈（父页 toast 裁切时兜底） */
.cv-auth-tip {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.cv-auth-tip.is-show { display: block; }
.cv-auth-tip.is-ok { background: #ecfdf5; color: #047857; }
.cv-auth-tip.is-err { background: #fef2f2; color: #b91c1c; }
.cv-auth-tip.is-warn { background: #fffbeb; color: #b45309; }

.cv-auth-options {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}
.cv-auth-options a {
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
}
.cv-auth-options a:hover { color: #4f46e5; }

.cv-auth-agree {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.cv-auth-agree a { color: #4f46e5; text-decoration: none; }
.cv-auth-agree input { margin-top: 2px; }

@media (max-width: 760px) {
  .cv-auth-left { display: none; }
  .cv-auth-right {
    flex: 1 1 100%;
    width: 100%;
    padding: 48px 24px 28px;
  }
}
