.vechoool-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
}

.vechoool-login-backdrop.is-closed {
  display: none;
}

.vechoool-login-modal {
  position: relative;
  display: flex;
  width: min(92vw, 440px);
  height: auto;
  min-height: min(63.75vh, 640px);
  max-height: min(90vh, 680px);
  border-radius: 2em;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  transform: scale(0.91);
  transform-origin: center center;
}

.vechoool-login-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.vechoool-login-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.vechoool-login-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.vechoool-login-right {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 28px 56px;
  background: #fff;
  color: #000;
}

.vechoool-login-title {
  margin: 0 0 40px;
  width: 100%;
  padding: 0 12px;
  text-align: center;
  font-size: 28px;
  line-height: 34px;
  font-weight: 400;
}

.vechoool-login-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
}

.vechoool-login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.vechoool-login-panel[hidden],
.vechoool-login-wechat-section[hidden] {
  display: none !important;
}

.vechoool-login-wechat-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-height: 400px;
}

.vechoool-login-panel--wechat {
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.vechoool-login-panel--wechat .vechoool-login-qr-wrap {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  margin-top: 0;
  border-radius: 10px;
}

.vechoool-login-qr-wrap--redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 180px;
  padding: 24px 16px;
}

.vechoool-login-wechat-redirect-hint {
  margin: 0;
  max-width: 280px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.vechoool-login-wechat-redirect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 280px);
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 92px;
  background: #07c160;
  color: #fff;
  font-family: var(--vech-font-ui, inherit);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.vechoool-login-wechat-redirect-btn:hover {
  opacity: 0.94;
}

.vechoool-login-wechat-redirect-btn:active {
  transform: scale(0.97);
}

.vechoool-login-wechat-redirect-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.vechoool-login-qr-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vechoool-login-wx-container {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  /* background: #fff; */
}

.vechoool-login-wx-container.is-hidden {
  display: none;
}

.vechoool-login-panel--wechat .vechoool-login-wx-container iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 250px !important;
  padding-top: 25px;
}

.vechoool-login-qr-loading,
.vechoool-login-qr-error {
  position: absolute;
  inset: 0;
  min-width: 150px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.vechoool-login-qr-error p {
  margin: 0;
  font-size: 13px;
  color: #ef4444;
}

.vechoool-login-qr-error button {
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

.vechoool-login-qr-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.vechoool-login-qr-btn.is-interactive {
  cursor: pointer;
}

.vechoool-login-qr {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  display: block;
  background: #fff;
}

.vechoool-login-qr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
}

.vechoool-login-qr-overlay svg {
  width: 48px;
  height: 48px;
}

.vechoool-login-qr-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vechoool-login-spin 0.8s linear infinite;
}

@keyframes vechoool-login-spin {
  to {
    transform: rotate(360deg);
  }
}

.vechoool-login-other {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 320px);
}

.vechoool-login-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.vechoool-login-divider::before,
.vechoool-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.vechoool-login-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.vechoool-login-icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.vechoool-login-icon-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.vechoool-login-phone-form {
  --lusion-dark-blue: #071bdf;
  --lusion-off-white-semi: rgba(0, 0, 0, 0.45);
  --lusion-sans: var(--vech-font-ui);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 320px);
  font-family: var(--lusion-sans);
}

.vechoool-login-input {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--lusion-sans);
  font-size: 15px;
  line-height: 1.2;
  color: #000;
  background: #f5f5f7;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease;
}

.vechoool-login-input::placeholder {
  color: var(--lusion-off-white-semi);
}

.vechoool-login-input:focus,
.vechoool-login-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
}

.vechoool-login-code-row {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.vechoool-login-code-row .vechoool-login-input {
  flex: 1;
  min-width: 0;
}

.vechoool-login-send-code {
  flex-shrink: 0;
  min-height: 47px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #f5f5f7;
  color: #000;
  font-family: var(--lusion-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vechoool-login-send-code:hover:not(:disabled) {
  background: #ececf0;
}

.vechoool-login-send-code:active:not(:disabled) {
  transform: scale(0.97);
}

.vechoool-login-send-code:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vechoool-login-submit {
  width: 100%;
  height: 47px;
  margin-top: 4px;
  border: none;
  border-radius: 92px;
  background: #000;
  color: #fff;
  font-family: var(--lusion-sans);
  font-size: 14.7px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.vechoool-login-submit:hover {
  opacity: 0.94;
}

.vechoool-login-submit:active {
  transform: scale(0.97);
}

.vechoool-login-error {
  margin: 24px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
}

.vechoool-login-debug {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.vechoool-login-footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0 28px 8px;
  text-align: left;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  user-select: none;
}

.vechoool-login-agree-checkbox {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: #111;
  cursor: pointer;
}

.vechoool-login-agree-text {
  flex: 1 1 auto;
}

.vechoool-login-agree-text label {
  cursor: pointer;
}

.vechoool-login-agree-link {
  padding: 0;
  border: none;
  background: none;
  color: rgba(0, 0, 0, 0.78);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.vechoool-login-agree-link:hover {
  color: #000;
}

.vechoool-login-agree-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 220px;
  padding: 24px 16px;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vechoool-login-agree-gate:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.22);
}

.vechoool-login-agree-gate svg {
  width: 28px;
  height: 28px;
  color: #07c160;
}

.vechoool-consent-prompt-backdrop,
.vechoool-legal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.vechoool-consent-prompt {
  position: relative;
  width: min(92vw, 320px);
  padding: 36px 24px 24px;
  border-radius: 1.25em;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.vechoool-consent-prompt__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vechoool-consent-prompt__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.vechoool-consent-prompt__close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vechoool-consent-prompt__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.78);
}

.vechoool-consent-prompt__link {
  padding: 0;
  border: none;
  background: none;
  color: #111;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.vechoool-consent-prompt__actions {
  display: flex;
  gap: 10px;
}

.vechoool-consent-prompt__cancel,
.vechoool-consent-prompt__agree {
  flex: 1 1 0;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.vechoool-consent-prompt__cancel {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(0, 0, 0, 0.78);
}

.vechoool-consent-prompt__cancel:hover {
  background: rgba(0, 0, 0, 0.04);
}

.vechoool-consent-prompt__agree {
  border: none;
  background: #111;
  color: #fff;
}

.vechoool-consent-prompt__agree:hover {
  background: #222;
}

.vechoool-legal-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(92vw, 640px);
  height: min(86vh, 760px);
  max-height: min(86vh, 760px);
  border-radius: 1.25em;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.vechoool-legal-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vechoool-legal-modal__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: #111;
}

.vechoool-legal-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vechoool-legal-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.vechoool-legal-modal__close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vechoool-legal-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 24px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.vechoool-legal-modal__status {
  margin: 24px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.vechoool-legal-content {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.78);
}

.vechoool-legal-content h1 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
  color: #111;
}

.vechoool-legal-content h2 {
  margin: 22px 0 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #111;
}

.vechoool-legal-content h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #111;
}

.vechoool-legal-content h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.vechoool-legal-content p {
  margin: 0 0 10px;
}

.vechoool-legal-content ul,
.vechoool-legal-content ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.vechoool-legal-content li {
  margin: 0 0 4px;
}

.vechoool-legal-content hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vechoool-legal-content strong {
  font-weight: 600;
  color: #111;
}

.vechoool-legal-content a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vechoool-legal-content code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.92em;
}

.vechoool-legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 14px;
}

.vechoool-legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.vechoool-legal-content th,
.vechoool-legal-content td {
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: top;
}

.vechoool-legal-content th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

html.vechoool-login-open,
html.vechoool-login-open body,
html.vechoool-legal-open,
html.vechoool-legal-open body {
  overflow: hidden !important;
}

@media (max-width: 812px) {
  .vechoool-login-modal {
    width: min(92vw, 440px);
    min-height: min(70vh, 640px);
    max-height: min(92vh, 680px);
    overflow-y: auto;
  }

  .vechoool-login-title {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 32px;
  }

  .vechoool-legal-modal {
    height: min(90vh, 760px);
    max-height: min(90vh, 760px);
  }
}

.vechoool-wechat-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
}

.vechoool-wechat-contact-backdrop.is-closed {
  display: none;
}

.vechoool-wechat-contact-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 360px);
  padding: 40px 28px 32px;
  border-radius: 2em;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.vechoool-wechat-contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.vechoool-wechat-contact-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.vechoool-wechat-contact-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.vechoool-wechat-contact-title {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: #000;
}

.vechoool-wechat-contact-qr-wrap {
  width: min(72vw, 240px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.vechoool-wechat-contact-qr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vechoool-wechat-contact-hint {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

html.vechoool-wechat-contact-open,
html.vechoool-wechat-contact-open body {
  overflow: hidden !important;
}
