.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(31.875vw, 350px);
  height: 63.75vh;
  max-height: 640px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28);
  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(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.vechoool-login-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.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 20px 56px;
  background: #000;
  color: #fff;
}

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

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

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

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

.vechoool-login-qr-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin-top: 10px;
}

.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: 16px;
  width: 240px;
  margin-top: 28px;
}

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

.vechoool-login-divider::before,
.vechoool-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

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

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

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

.vechoool-login-phone-form {
  --lusion-dark-blue: #071bdf;
  --lusion-off-white-semi: rgba(240, 241, 250, 0.7);
  --lusion-sans: "Inter", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
  font-family: var(--lusion-sans);
}

.vechoool-login-input {
  width: 100%;
  border: 1.5px solid rgba(240, 241, 250, 0.22);
  border-radius: 14px;
  padding: 13px 16px;
  font-family: var(--lusion-sans);
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  background: rgba(43, 46, 58, 0.42);
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

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

.vechoool-login-input:focus,
.vechoool-login-input:focus-visible {
  border-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14) !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 16px;
  border: 1.5px solid rgba(240, 241, 250, 0.28);
  border-radius: 14px;
  background: rgba(43, 46, 58, 0.42);
  color: #fff;
  font-family: var(--lusion-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vechoool-login-send-code:hover:not(:disabled) {
  background: rgba(43, 46, 58, 0.65);
  border-color: rgba(240, 241, 250, 0.45);
}

.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: #fff;
  color: #000;
  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: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.5;
}

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

.vechoool-login-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

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

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

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