:root {
  --nq-auth-bg: url("https://img.cdn1.vip/i/69eaf8da84ee6_1777006810.webp");
  --nq-blue: #1d5cff;
  --nq-blue-hover: #0a46dc;
  --nq-text: #1f2329;
  --nq-muted: rgba(31, 35, 41, 0.55);
  --nq-input-bg: #f2f3f5;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background-color: #f7f9ff;
}

#login.nq-auth {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 72px;
  box-sizing: border-box;
  background: #f7f9ff;
  font-size: 14px;
  line-height: 1.5;
}

#login.nq-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--nq-auth-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: 0;
}

#login.nq-auth > .nq-auth-form {
  position: relative;
  z-index: 1;
}

#login.nq-auth > .nq-auth-tools {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
}

.nq-auth-form {
  width: 400px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.nq-auth-form-inner {
  padding: 28px 32px 28px;
}

.nq-auth-logo {
  text-align: center;
  margin-bottom: 18px;
}

.nq-auth-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  cursor: pointer;
}

.nq-tabs-wrap {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.nq-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nq-tab {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--nq-muted);
  padding: 10px 0 12px;
  cursor: pointer;
  user-select: none;
}

.nq-tab.active {
  color: var(--nq-text);
}

.nq-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: rgba(29, 92, 255, 0.75);
  transition: left 220ms cubic-bezier(0.2, 0.8, 0.2, 1), width 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.nq-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.nq-form-group label {
  display: block;
  font-size: 13px;
  color: var(--nq-text);
  margin-bottom: 6px;
  font-weight: 400;
}

#login.nq-auth .nq-input-icon {
  width: 100%;
}

#login.nq-auth .nq-input-icon .el-input {
  width: 100%;
  display: block;
}

#login.nq-auth .nq-input-icon--flex {
  flex: 1;
  min-width: 0;
}

#login.nq-auth .el-input__inner {
  height: 42px !important;
  line-height: 42px !important;
  border-radius: 2px !important;
  border: 1px solid transparent !important;
  background: var(--nq-input-bg) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--nq-text);
}

#login.nq-auth .el-input--prefix .el-input__inner {
  padding-left: 38px !important;
}

#login.nq-auth .el-input__inner:focus {
  background: #fff !important;
  border-color: rgba(29, 92, 255, 0.55) !important;
}

#login.nq-auth .el-input__prefix {
  left: 10px;
  display: flex;
  align-items: center;
  height: 100%;
}

#login.nq-auth .nq-prefix-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center;
  opacity: 0.55;
}

#login.nq-auth .nq-icon-mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6.5C4 5.119 5.119 4 6.5 4h11C18.881 4 20 5.119 20 6.5v11c0 1.381-1.119 2.5-2.5 2.5h-11C5.119 20 4 18.881 4 17.5v-11Z' stroke='%231f2329' stroke-width='1.6'/%3E%3Cpath d='M6.2 7.6 12 12.2l5.8-4.6' stroke='%231f2329' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

#login.nq-auth .nq-icon-lock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 11V8.8C7 6.149 9.239 4 12 4s5 2.149 5 4.8V11' stroke='%231f2329' stroke-width='1.6'/%3E%3Cpath d='M7.5 11h9A2.5 2.5 0 0 1 19 13.5v5A2.5 2.5 0 0 1 16.5 21h-9A2.5 2.5 0 0 1 5 18.5v-5A2.5 2.5 0 0 1 7.5 11Z' stroke='%231f2329' stroke-width='1.6'/%3E%3C/svg%3E");
}

#login.nq-auth .nq-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8.1 4.5h7.8c.884 0 1.6.716 1.6 1.6v11.8c0 .884-.716 1.6-1.6 1.6H8.1c-.884 0-1.6-.716-1.6-1.6V6.1c0-.884.716-1.6 1.6-1.6Z' stroke='%231f2329' stroke-width='1.6'/%3E%3C/svg%3E");
}

#login.nq-auth .nq-icon-code {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10.2V8.8C7 6.149 9.239 4 12 4s5 2.149 5 4.8v1.4' stroke='%231f2329' stroke-width='1.6'/%3E%3Cpath d='M7.5 10.2h9A2.5 2.5 0 0 1 19 12.7v5.8A2.5 2.5 0 0 1 16.5 21h-9A2.5 2.5 0 0 1 5 18.5v-5.8A2.5 2.5 0 0 1 7.5 10.2Z' stroke='%231f2329' stroke-width='1.6'/%3E%3C/svg%3E");
}

#login.nq-auth .nq-phone-field.el-input-group {
  display: flex;
  align-items: stretch;
}

#login.nq-auth .nq-phone-field .el-input-group__prepend {
  background: var(--nq-input-bg);
  border: 1px solid transparent;
  border-radius: 2px 0 0 2px;
  padding: 0;
  overflow: hidden;
}

#login.nq-auth .nq-phone-field .el-input-group__prepend .el-select {
  margin: 0;
}

#login.nq-auth .nq-phone-field .nq-phone-code {
  width: 96px;
}

#login.nq-auth .nq-phone-field .nq-phone-code .el-input__inner {
  padding-left: 12px !important;
  padding-right: 24px !important;
  border: none !important;
  background: transparent !important;
  height: 42px !important;
}

#login.nq-auth .nq-phone-field .el-input--prefix .el-input__inner {
  border-radius: 0 2px 2px 0 !important;
}

.nq-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.nq-code-btn {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 2px !important;
  white-space: nowrap;
  background: var(--nq-blue) !important;
  border-color: var(--nq-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
}

.nq-btn-login {
  width: 100%;
  height: 42px !important;
  border-radius: 2px !important;
  font-weight: 600;
  font-size: 14px !important;
  background: var(--nq-blue) !important;
  border-color: var(--nq-blue) !important;
}

.nq-btn-login:hover,
.nq-btn-login:focus {
  background: var(--nq-blue-hover) !important;
  border-color: var(--nq-blue-hover) !important;
}

.nq-agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nq-agree-row .el-checkbox {
  margin: 0;
  line-height: 1;
}

.nq-agree-row .read-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(31, 35, 41, 0.65);
  padding: 0;
  cursor: pointer;
}

.nq-agree-row .read-text a {
  color: var(--nq-blue);
}

.nq-auth-switch {
  text-align: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.nq-auth-switch a {
  color: var(--nq-blue);
}

.nq-auth-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
}

.nq-auth-actions a {
  color: rgba(31, 35, 41, 0.72);
}

.nq-auth-actions a:hover {
  color: var(--nq-blue);
}

.nq-auth-agreement {
  margin-top: 16px;
  padding: 0 4px 2px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(31, 35, 41, 0.58);
  text-align: center;
  word-break: keep-all;
  white-space: normal;
}

.nq-auth-agreement a {
  color: var(--nq-blue);
}

.nq-auth-copyright {
  margin-top: 10px;
  padding-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(31, 35, 41, 0.45);
  text-align: center;
}

.nq-oauth-divider {
  text-align: center;
  margin: 16px 0 12px;
  color: #999;
  font-size: 12px;
}

.nq-oauth-list {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.nq-oauth-list .oauth-item img {
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.nq-auth-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.nq-auth-lang .nq-lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 148px;
  height: 36px;
  padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.nq-auth-lang .nq-lang-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  display: block;
}

#login.nq-auth .nq-lang-select {
  flex: 1;
  min-width: 0;
}

#login.nq-auth .nq-lang-select .el-input {
  display: block;
}

#login.nq-auth .nq-lang-select .el-input__inner {
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 22px 0 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  color: var(--nq-text);
}

#login.nq-auth .nq-lang-select .el-input__suffix {
  right: 0;
}

#login.nq-auth .nq-lang-select .el-input__icon {
  line-height: 34px !important;
}

.nq-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-box {
  text-align: center;
  padding: 8px 0;
}

.qr-box-img img {
  width: 180px;
  height: 180px;
}

.template {
  display: none;
}

.nq-lang-popper .el-select-dropdown__item {
  height: auto;
  line-height: 1.4;
  padding: 8px 16px;
}

.nq-lang-popper .nq-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nq-lang-popper .nq-lang-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}
