.auth-card.auth-card--integrated {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  width: min(100%, 900px);
  padding: 0;
  overflow: hidden;
}

.auth-form-panel {
  min-width: 0;
  padding: 34px 38px 32px;
}

.auth-login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 18px;
}

.auth-method {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ccd7e7;
  border-radius: 8px;
  color: #65718a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-method.is-active {
  border-color: #58779c;
  color: #365a82;
  background: #eef3f8;
}

.auth-card form[hidden],
.auth-login-methods[hidden],
.auth-form-panel [hidden],
.wechat-login-panel[hidden] {
  display: none !important;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}

.auth-code-row label {
  min-width: 0;
}

.auth-code-button {
  min-height: 44px;
  margin-bottom: 2px;
  padding: 9px 12px;
  border: 1px solid #58779c;
  border-radius: 8px;
  color: #365a82;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.auth-code-button:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-error.is-success {
  color: #16804a;
}

.wechat-login-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  padding: 34px 28px 32px;
  border-left: 1px solid #e3eaf4;
  background: linear-gradient(180deg, #f7f9fc, #fff);
  text-align: center;
}

.wechat-login-panel h2 {
  margin: 8px 0 18px;
  color: #172543;
  font-size: 22px;
}

.wechat-qr-frame {
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 52, 91, .08);
}

.wechat-qr-frame img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.wechat-qr-placeholder {
  padding: 26px;
  color: #8290a8;
  font-size: 14px;
  line-height: 1.7;
}

.wechat-status {
  min-height: 44px;
  margin: 16px 0 10px;
  color: #65718a;
  font-size: 13px;
  line-height: 1.7;
}

.wechat-status.is-error {
  color: #bf2525;
}

.wechat-start,
.wechat-refresh {
  min-width: 156px;
  padding: 10px 16px;
  border: 1px solid #58779c;
  border-radius: 8px;
  background: #58779c;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.wechat-refresh {
  background: #fff;
  color: #365a82;
}

.wechat-start:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 720px) {
  .auth-card.auth-card--integrated {
    width: min(100%, 460px);
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    padding: 28px 23px 24px;
  }

  .wechat-login-panel {
    padding: 26px 23px 30px;
    border-top: 1px solid #e3eaf4;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .auth-login-methods,
  .auth-code-row {
    grid-template-columns: 1fr;
  }
}
