.jk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2147483647;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jk-modal-overlay.open {
  display: flex;
}

.jk-modal-box {
  width: 840px;
  max-width: 92vw;
  height: 540px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: jk-zoom-in 0.25s ease;
}

@keyframes jk-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.jk-modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  flex-shrink: 0;
}

.jk-modal-btn-area {
  margin-left: auto;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.jk-modal-btn-area:hover {
  background: #f2f3f5;
}

.jk-modal-btn-area svg {
  width: 14px;
  height: 14px;
  fill: #909399;
}

.jk-login-content {
  flex: 1;
  padding: 0 20px 20px;
  overflow: hidden;
}

.jk-login-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
}

.jk-login-banner {
  width: 42%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f4ff 0%, #d4ecff 50%, #b8dfff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.jk-login-banner-inner {
  text-align: center;
}

.jk-login-banner-logo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.2);
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.jk-login-banner-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 8px;
}

.jk-login-banner-desc {
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
}

.jk-login-main {
  flex: 1;
  position: relative;
  padding: 36px 40px 60px;
  overflow-y: auto;
}

.jk-login-main::-webkit-scrollbar {
  display: none;
}

.jk-login-section,
.jk-register-section,
.jk-edit-section {
  max-width: 360px;
}

.jk-hidden {
  display: none !important;
}

.jk-login-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.jk-login-tab {
  font-size: 16px;
  color: #606266;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}

.jk-login-tab.active {
  color: #409eff;
  font-weight: 600;
  border-bottom-color: #409eff;
}

.jk-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 20px;
}

.jk-form-group {
  margin-bottom: 18px;
  position: relative;
}

.jk-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #303133;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.jk-input:focus {
  border-color: #409eff;
}

.jk-input.jk-error {
  border-color: #f56c6c;
}

.jk-error-msg {
  display: none;
  font-size: 12px;
  color: #f56c6c;
  margin-top: 4px;
}

.jk-error-msg.show {
  display: block;
}

.jk-code-row {
  display: flex;
  gap: 10px;
  position: relative;
}

.jk-code-row .jk-input {
  flex: 1;
  padding-right: 100px;
}

.jk-get-code {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #409eff;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.jk-get-code.disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.jk-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 4px;
  background: #409eff;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.jk-btn:hover {
  background: #66b1ff;
}

.jk-btn:disabled {
  background: #a0cfff;
  cursor: not-allowed;
}

.jk-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  color: #606266;
}

.jk-links.jk-end {
  justify-content: flex-end;
}

.jk-link {
  color: #409eff;
  cursor: pointer;
  user-select: none;
}

.jk-link-muted {
  color: #999;
  cursor: pointer;
}

.jk-agreement {
  position: absolute;
  bottom: 20px;
  left: 40px;
  right: 40px;
  font-size: 13px;
  color: #606266;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.5;
}

.jk-agreement input {
  margin-top: 3px;
  flex-shrink: 0;
}

.jk-agreement a {
  color: #409eff;
  text-decoration: none;
}

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

.jk-user-panel {
  text-align: center;
  padding-top: 40px;
}

.jk-user-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.jk-user-phone {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}

.jk-user-desc {
  font-size: 14px;
  color: #909399;
  margin-bottom: 32px;
}

.jk-logout-btn {
  width: 200px;
  background: #fff;
  color: #f56c6c;
  border: 1px solid #f56c6c;
}

.jk-logout-btn:hover {
  background: #fef0f0;
}
