/* phoneAuth.css */
.phone-auth-form {
  display: grid;
  gap: 9px;
  margin: 20px 0 16px;
}
.phone-auth-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.phone-number-field,
.phone-code-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.phone-number-field:focus-within,
.phone-code-field:focus-within {
  border-color: #8465eb;
  box-shadow: 0 0 0 3px #8465eb20;
}
.phone-number-field span {
  flex: 0 0 auto;
  padding: 0 13px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.phone-auth-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 13px;
  outline: none;
  font-size: 16px;
}
.phone-code-field button {
  flex: 0 0 auto;
  padding: 10px 12px;
  margin-right: 3px;
  border: 0;
  border-radius: 8px;
  color: #7654db;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.phone-auth-form button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.phone-auth-submit {
  min-height: 48px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  background: #7654db;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.phone-auth-message {
  min-height: 20px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.phone-auth-message.is-error {
  color: var(--orange);
}
.phone-login-help {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 17px;
  color: var(--muted);
}
.phone-login-help a {
  color: #8465eb;
}
.login-screen:not(.has-phone-login) .phone-login-help {
  display: none;
}
.has-phone-login .wecom-login {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}
.login-screen {
  overflow-y: auto;
}
.login-card {
  margin: auto;
}
.dev-login[hidden] {
  display: none;
}
.account-security-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 28px 100px #0003;
}
.account-security-dialog::backdrop {
  background: #10101b66;
  backdrop-filter: blur(4px);
}
.account-security-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.account-security-dialog h2 {
  margin: 0;
  font-size: 20px;
}
.account-security-dialog [data-close-security] {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.phone-security-intro,
[data-security-content] {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.phone-bound-state {
  text-align: center;
  padding: 6px 0 16px;
}
.phone-bound-state > span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #8465eb20;
  color: #8465eb;
  font-size: 24px;
}
.phone-bound-state h3 {
  color: var(--text);
  margin: 14px 0 5px;
}
.phone-bound-state [data-bound-number] {
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 18px;
}
.phone-bound-state small {
  display: block;
  margin-top: 14px;
}
@media (max-width: 520px) {
  .login-screen {
    padding: 20px 16px;
  }
  .login-card {
    padding: 24px;
    border-radius: 22px;
  }
  .login-brand p {
    font-size: 12px;
  }
  .login-copy {
    margin: 22px 0 16px;
  }
  .account-security-dialog {
    padding: 22px;
  }
}
