.auth-page {
  display: flex;
  justify-content: center;
  padding: 6px 0 28px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(23, 24, 26, 0.04);
}

.auth-title {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.auth-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auth-label {
  font-size: 12px;
  color: var(--muted);
}

.auth-optional {
  font-size: 11px;
}

.auth-field input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.auth-field input[dir="ltr"] {
  font-family: var(--mono);
  font-size: 13px;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-hint {
  margin: -4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}

.auth-links span {
  color: var(--muted);
}

.auth-notice {
  margin-top: 16px;
}

.auth-note {
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.auth-email-line {
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.auth-email-line bdi {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.auth-otp input {
  height: 54px;
  text-align: center;
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 10px;
  padding-inline-start: 10px;
}

.auth-resend-form {
  margin-top: 12px;
  text-align: center;
}

.auth-text-button {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
}

.auth-text-button:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 20px 18px 18px;
  }

  .auth-title {
    font-size: 21px;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
