/**
 * 小逸 在线客服系统 - 登录页「使用卡密登录」样式
 *
 * 登录页本体是打包在 /assets/index-*.js 里的 Vue 组件（带 data-v-cdafeac5 作用域），
 * 外挂脚本注入的节点拿不到它的作用域样式，所以这里按登录页的视觉重新写一套。
 * 配色跟原登录页对齐：主色 #007aff、按钮 #4285f4、输入框圆角 14px、高度 50px。
 */

/* ---------- 账号登录 / 卡密登录 切换 ---------- */
.ck-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 13px;
}

.ck-tab {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: #6e6e73;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.ck-tab:hover {
  color: #1d1d1f;
}

.ck-tab.ck-active {
  background: #ffffff;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
}

/* ---------- 卡密面板 ---------- */
.ck-panel {
  display: none;
}

.ck-panel.ck-active {
  display: block;
}

/* 切到卡密模式时，把原来的账号/密码/登录按钮藏起来 */
.login-content.ck-cardkey > .form-group,
.login-content.ck-cardkey > .login-btn {
  display: none !important;
}

.ck-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #86868b;
}

.ck-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.ck-input-wrap.ck-focused {
  border-color: rgba(0, 122, 255, 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.ck-input-icon {
  flex-shrink: 0;
  color: #86868b;
  transition: color 0.3s ease;
}

.ck-input-wrap.ck-focused .ck-input-icon {
  color: #007aff;
}

.ck-input-wrap input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 1px;
  color: #1d1d1f;
}

.ck-input-wrap input::placeholder {
  color: #b0b0b5;
  letter-spacing: normal;
}

.ck-btn {
  width: 100%;
  max-width: 340px;
  height: 50px;
  margin-top: 30px;
  border: none;
  border-radius: 10px;
  background-color: #4285f4;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ck-btn:hover:not(:disabled) {
  background-color: #3574e0;
}

.ck-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------- 提示 ---------- */
.ck-msg {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.ck-msg.ck-show {
  display: block;
}

.ck-msg.ck-error {
  background: rgba(245, 63, 63, 0.09);
  color: #d32f2f;
}

.ck-msg.ck-ok {
  background: rgba(0, 180, 42, 0.09);
  color: #14883a;
}

/* ---------- 成功后的小提示 ---------- */
.ck-success-tip {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #6e6e73;
  word-break: break-all;
}

.ck-success-tip a {
  color: #007aff;
  text-decoration: none;
}

@media (max-width: 420px) {
  .ck-btn {
    max-width: none;
  }
}
